#9987F2#9987F2

#9987F2 is a light, vivid violet. Relative luminance 0.305; OKLCH L 68.6% C 0.154 H 289.4°. Best body text is #000000 at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#9987F2
RGBrgb(153, 135, 242)
HSLhsl(250, 80%, 74%)
HSVhsv(250, 44%, 95%)
CMYKcmyk(36.8%, 44.2%, 0%, 5.1%)
CIE-LABlab(62.09, 31.17, -51.57)
CIE-LCHlch(62.09, 60.26, 301.15°)
OKLaboklab(68.56% 0.0512 -0.1454)
OKLCHoklch(68.56% 0.154 289.4)
XYZxyz(37.8235, 30.5100, 87.8834)
Luminance0.3051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9987F2 #E0F287
analogous
#87ABF2 #9987F2 #CE87F2
triadic
#9987F2 #F29987 #87F299
tetradic
#9987F2 #F287AB #E0F287 #87F2CE
square
#9987F2 #F287AB #E0F287 #87F2CE
split-complementary
#9987F2 #F2CE87 #ABF287
monochromatic
#3B19E6 #6A50EC #9987F2 #C8BEF8 #E8E3FC

Accessibility & contrast

On white

2.96
#9987F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.10
#9987F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9987F2
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9987F2#FFFFFF#000000##000000
##9987F21.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9987f2;
/* rgb */ color: rgb(153, 135, 242);
/* oklch */ color: oklch(68.6% 0.154 289.4);
Tailwind
colors: {
  custom: {
    50: '#baaaf7',
    500: '#9987f2',
    950: '#000000',
  },
}
SCSS
$custom: #9987f2;
$custom-light: #baaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9987f2",
  "rgb": {
    "r": 153,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 250.093,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.68562,
    "c": 0.15415,
    "h": 289.4
  },
  "luminance": 0.30511
}

Semantic roles & 50–950 ramp

primary
#9987F2
secondary
#EFF4D7
accent
#DD09B9
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9987F2

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

Preview Lab → · Contrast checker → · Palette generator →

#9987F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva