#9A87F2#9A87F2

#9A87F2 is a light, vivid violet. Relative luminance 0.306; OKLCH L 68.6% C 0.154 H 289.9°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#9A87F2
RGBrgb(154, 135, 242)
HSLhsl(251, 80%, 74%)
HSVhsv(251, 44%, 95%)
CMYKcmyk(36.4%, 44.2%, 0%, 5.1%)
CIE-LABlab(62.18, 31.42, -51.44)
CIE-LCHlch(62.18, 60.27, 301.42°)
OKLaboklab(68.65% 0.0524 -0.145)
OKLCHoklch(68.65% 0.154 289.9)
XYZxyz(38.0131, 30.6078, 87.8923)
Luminance0.3061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A87F2 #DFF287
analogous
#87AAF2 #9A87F2 #D087F2
triadic
#9A87F2 #F29A87 #87F29A
tetradic
#9A87F2 #F287AA #DFF287 #87F2D0
square
#9A87F2 #F287AA #DFF287 #87F2D0
split-complementary
#9A87F2 #F2D087 #AAF287
monochromatic
#3D19E6 #6C50EC #9A87F2 #C8BEF8 #E8E3FC

Accessibility & contrast

On white

2.95
#9A87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#9A87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9A87F2
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A87F2#FFFFFF#000000##000000
##9A87F21.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a87f2;
/* rgb */ color: rgb(154, 135, 242);
/* oklch */ color: oklch(68.6% 0.154 289.9);
Tailwind
colors: {
  custom: {
    50: '#bbaaf7',
    500: '#9a87f2',
    950: '#000000',
  },
}
SCSS
$custom: #9a87f2;
$custom-light: #bbaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a87f2",
  "rgb": {
    "r": 154,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 250.654,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.68645,
    "c": 0.15414,
    "h": 289.9
  },
  "luminance": 0.30609
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9A87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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