#9B87F3#9B87F3

#9B87F3 is a light, vivid violet. Relative luminance 0.308; OKLCH L 68.8% C 0.155 H 290.2°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#9B87F3
RGBrgb(155, 135, 243)
HSLhsl(251, 82%, 74%)
HSVhsv(251, 44%, 95%)
CMYKcmyk(36.2%, 44.4%, 0%, 4.7%)
CIE-LABlab(62.31, 31.94, -51.77)
CIE-LCHlch(62.31, 60.83, 301.68°)
OKLaboklab(68.78% 0.0537 -0.1459)
OKLCHoklch(68.78% 0.155 290.2)
XYZxyz(38.3549, 30.7666, 88.6944)
Luminance0.3077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B87F3 #DFF387
analogous
#87A9F3 #9B87F3 #D187F3
triadic
#9B87F3 #F39B87 #87F39B
tetradic
#9B87F3 #F387A9 #DFF387 #87F3D1
square
#9B87F3 #F387A9 #DFF387 #87F3D1
split-complementary
#9B87F3 #F3D187 #A9F387
monochromatic
#3E18E8 #6D4FED #9B87F3 #C9BFF9 #E8E3FC

Accessibility & contrast

On white

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

On black

7.15
#9B87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9B87F3
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B87F3#FFFFFF#000000##000000
##9B87F31.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6299F7
Deuteranopia (green-blind)
#6394F0
Tritanopia (blue-blind)
#859CB1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9b87f3;
/* rgb */ color: rgb(155, 135, 243);
/* oklch */ color: oklch(68.8% 0.155 290.2);
Tailwind
colors: {
  custom: {
    50: '#bcaaf7',
    500: '#9b87f3',
    950: '#000000',
  },
}
SCSS
$custom: #9b87f3;
$custom-light: #bcaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b87f3",
  "rgb": {
    "r": 155,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 251.111,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.68784,
    "c": 0.15547,
    "h": 290.2
  },
  "luminance": 0.30768
}

Semantic roles & 50–950 ramp

primary
#9B87F3
secondary
#EFF4D7
accent
#DE07B6
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9B87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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