#9A87F9#9A87F9

#9A87F9 is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.0% C 0.163 H 289.0°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#9A87F9
RGBrgb(154, 135, 249)
HSLhsl(250, 90%, 75%)
HSVhsv(250, 46%, 98%)
CMYKcmyk(38.2%, 45.8%, 0%, 2.4%)
CIE-LABlab(62.54, 33.29, -54.71)
CIE-LCHlch(62.54, 64.04, 301.32°)
OKLaboklab(69.04% 0.0533 -0.1545)
OKLCHoklch(69.04% 0.163 289)
XYZxyz(39.0846, 31.0364, 93.5355)
Luminance0.3104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A87F9 #E6F987
analogous
#87ADF9 #9A87F9 #D387F9
triadic
#9A87F9 #F99A87 #87F99A
tetradic
#9A87F9 #F987AD #E6F987 #87F9D3
square
#9A87F9 #F987AD #E6F987 #87F9D3
split-complementary
#9A87F9 #F9D387 #ADF987
monochromatic
#3812F3 #694DF6 #9A87F9 #CBC1FC #E6E2FE

Accessibility & contrast

On white

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

On black

7.21
#9A87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9A87F9
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A87F9#FFFFFF#000000##000000
##9A87F91.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9AFD
Deuteranopia (green-blind)
#5E95F6
Tritanopia (blue-blind)
#819EB4
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9a87f9;
/* rgb */ color: rgb(154, 135, 249);
/* oklch */ color: oklch(69.0% 0.163 289.0);
Tailwind
colors: {
  custom: {
    50: '#bcaafc',
    500: '#9a87f9',
    950: '#000000',
  },
}
SCSS
$custom: #9a87f9;
$custom-light: #bcaafc;
$custom-dark: #000000;
JSON
{
  "hex": "#9a87f9",
  "rgb": {
    "r": 154,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 250,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.69037,
    "c": 0.16349,
    "h": 289
  },
  "luminance": 0.31038
}

Semantic roles & 50–950 ramp

primary
#9A87F9
secondary
#F0F6D5
accent
#E600BF
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9A87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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