Nearest named color · #9A8BFF
#9A8BFF
Nearest named color: Periwinkle
#9A8BFF (rgb(154 139 255), hsl(248 100% 77%), oklch(0.701 0.166 287.2)) is closest to the named color Periwinkle. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#9A8BFF
oklch(0.701 0.166 287.2)
Color conversions
- HEX
- #9a8bff
- RGB
- rgb(154 139 255)
- HSL
- hsl(248 100% 77%)
- HWB
- hwb(248 55% 0%)
- OKLCH
- oklch(0.701 0.166 287.2)
- OKLab
- oklab(0.701 0.049 -0.158)
- CIE Lab
- lab(63.14 26.53 -56.73)
- LCH
- lch(63.14 62.63 295.1)
- CMYK
- cmyk(40% 45% 0% 0%)
Tints · Shades · Tones
Tints
- A397FF
- ACA3FF
- B6AFFF
- C0BBFF
- CAC6FF
- D4D2FF
- DFDDFF
- E9E8FF
- F4F4FF
Shades
- 8578DE
- 7166BE
- 5E549E
- 4B4380
- 393263
- 272348
- 17142E
- 090716
- 010103
Tones
- 978BF2
- 948AE6
- 918AD9
- 8E89CC
- 8C88C0
- 8986B3
- 8785A6
- 84849A
- 82828D
Color harmonies
Complementary +180°
- 9A8BFF
Periwinkle
- AAA400
≈ Jīn Sè Gold
Analogous -30° +30°
- 9A8BFF
Periwinkle
- 5A9FFF
≈ Blue Chaos
- C87AE2
≈ Lavender Perceptions
Triadic +120° +240°
- 9A8BFF
Periwinkle
- EF7935
≈ Orange Crush
- 00BA8C
≈ Slime Girl
Split-complementary +150° +210°
- 9A8BFF
Periwinkle
- D19100
≈ Elysium Gold
- 69B646
≈ Pure Apple
Tetradic +90° +180° +270°
- 9A8BFF
Periwinkle
- F46D78
≈ Sugar Coral
- AAA400
≈ Jīn Sè Gold
- 00B5B8
≈ Cyan Sky
Contrast & accessibility
Ag
FailOn white
WCAG 2.79:1 · APCA Lc 54
Ag
AAAOn black
WCAG 7.51:1 · APCA Lc 48
Best text color: #000000
WCAG 7.51:1 (AAA) · APCA Lc 48
Contrast pairs
Code snippets
CSS
:root {
--periwinkle: #9a8bff;
--periwinkle-rgb: 154 139 255;
--periwinkle-oklch: oklch(0.701 0.166 287.2);
}
.element {
color: var(--periwinkle);
background-color: hsl(248 100% 77%);
border-color: oklch(0.701 0.166 287.2);
}Tailwind CSS v4
@theme {
--color-periwinkle: #9a8bff;
--color-periwinkle-50: #f3eeff;
--color-periwinkle-100: #e6dfff;
--color-periwinkle-200: #d2c9ff;
--color-periwinkle-300: #b5a8ff;
--color-periwinkle-400: #9a8cfa;
--color-periwinkle-500: #836eec;
--color-periwinkle-600: #6e5ec7;
--color-periwinkle-700: #584ba0;
--color-periwinkle-800: #3e3778;
--color-periwinkle-900: #2b2655;
--color-periwinkle-950: #191339;
}SCSS
$periwinkle: #9a8bff;
$periwinkle-rgb: 154, 139, 255;
$periwinkle-light: mix(#fff, $periwinkle, 20%);
$periwinkle-dark: mix(#000, $periwinkle, 20%);
.element {
color: $periwinkle;
box-shadow: 0 0 0 2px rgba($periwinkle, 0.35);
}