#9F87F2#9F87F2

#9F87F2 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.1% C 0.154 H 292.2°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#9F87F2
RGBrgb(159, 135, 242)
HSLhsl(253, 80%, 74%)
HSVhsv(253, 44%, 95%)
CMYKcmyk(34.3%, 44.2%, 0%, 5.1%)
CIE-LABlab(62.60, 32.71, -50.74)
CIE-LCHlch(62.60, 60.36, 302.81°)
OKLaboklab(69.07% 0.0583 -0.1428)
OKLCHoklch(69.07% 0.154 292.2)
XYZxyz(38.9849, 31.1088, 87.9378)
Luminance0.3111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F87F2 #DAF287
analogous
#87A5F2 #9F87F2 #D587F2
triadic
#9F87F2 #F29F87 #87F29F
tetradic
#9F87F2 #F287A5 #DAF287 #87F2D5
square
#9F87F2 #F287A5 #DAF287 #87F2D5
split-complementary
#9F87F2 #F2D587 #A5F287
monochromatic
#4719E6 #7350EC #9F87F2 #CBBEF8 #E9E3FC

Accessibility & contrast

On white

2.91
#9F87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#9F87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F87F2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F87F2#FFFFFF#000000##000000
##9F87F21.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6399F6
Deuteranopia (green-blind)
#6695EF
Tritanopia (blue-blind)
#8B9BB1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9f87f2;
/* rgb */ color: rgb(159, 135, 242);
/* oklch */ color: oklch(69.1% 0.154 292.2);
Tailwind
colors: {
  custom: {
    50: '#beaaf7',
    500: '#9f87f2',
    950: '#000000',
  },
}
SCSS
$custom: #9f87f2;
$custom-light: #beaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f87f2",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 253.458,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.69068,
    "c": 0.15422,
    "h": 292.2
  },
  "luminance": 0.3111
}

Semantic roles & 50–950 ramp

primary
#9F87F2
secondary
#EDF4D7
accent
#DD09AD
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9F87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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