#9B87F2#9B87F2

#9B87F2 is a light, vivid violet. Relative luminance 0.307; OKLCH L 68.7% C 0.154 H 290.3°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#9B87F2
RGBrgb(155, 135, 242)
HSLhsl(251, 80%, 74%)
HSVhsv(251, 44%, 95%)
CMYKcmyk(36%, 44.2%, 0%, 5.1%)
CIE-LABlab(62.26, 31.68, -51.30)
CIE-LCHlch(62.26, 60.29, 301.70°)
OKLaboklab(68.73% 0.0536 -0.1445)
OKLCHoklch(68.73% 0.154 290.3)
XYZxyz(38.2043, 30.7063, 87.9012)
Luminance0.3071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B87F2 #DEF287
analogous
#87A9F2 #9B87F2 #D187F2
triadic
#9B87F2 #F29B87 #87F29B
tetradic
#9B87F2 #F287A9 #DEF287 #87F2D1
square
#9B87F2 #F287A9 #DEF287 #87F2D1
split-complementary
#9B87F2 #F2D187 #A9F287
monochromatic
#3F19E6 #6D50EC #9B87F2 #C9BEF8 #E8E3FC

Accessibility & contrast

On white

2.94
#9B87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#9B87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9B87F2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B87F2#FFFFFF#000000##000000
##9B87F21.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6298F6
Deuteranopia (green-blind)
#6494EF
Tritanopia (blue-blind)
#859CB1
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9b87f2;
/* rgb */ color: rgb(155, 135, 242);
/* oklch */ color: oklch(68.7% 0.154 290.3);
Tailwind
colors: {
  custom: {
    50: '#bcaaf7',
    500: '#9b87f2',
    950: '#000000',
  },
}
SCSS
$custom: #9b87f2;
$custom-light: #bcaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b87f2",
  "rgb": {
    "r": 155,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 251.215,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.68729,
    "c": 0.15414,
    "h": 290.3
  },
  "luminance": 0.30707
}

Semantic roles & 50–950 ramp

primary
#9B87F2
secondary
#EEF4D7
accent
#DD09B5
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9B87F2

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9B87F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva