#9A87F7#9A87F7

#9A87F7 is a light, vivid violet. Relative luminance 0.309; OKLCH L 68.9% C 0.161 H 289.3°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#9A87F7
RGBrgb(154, 135, 247)
HSLhsl(250, 88%, 75%)
HSVhsv(250, 45%, 97%)
CMYKcmyk(37.7%, 45.3%, 0%, 3.1%)
CIE-LABlab(62.43, 32.75, -53.78)
CIE-LCHlch(62.43, 62.97, 301.34°)
OKLaboklab(68.92% 0.0531 -0.1518)
OKLCHoklch(68.92% 0.161 289.3)
XYZxyz(38.7743, 30.9122, 91.9014)
Luminance0.3091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A87F7 #E4F787
analogous
#87ACF7 #9A87F7 #D287F7
triadic
#9A87F7 #F79A87 #87F79A
tetradic
#9A87F7 #F787AC #E4F787 #87F7D2
square
#9A87F7 #F787AC #E4F787 #87F7D2
split-complementary
#9A87F7 #F7D287 #ACF787
monochromatic
#3914EF #6A4EF3 #9A87F7 #CAC0FB #E7E2FD

Accessibility & contrast

On white

2.92
#9A87F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#9A87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9A87F7
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A87F7#FFFFFF#000000##000000
##9A87F71.002.927.187.18
#FFFFFF2.921.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F99FB
Deuteranopia (green-blind)
#5F94F4
Tritanopia (blue-blind)
#819DB3
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9a87f7;
/* rgb */ color: rgb(154, 135, 247);
/* oklch */ color: oklch(68.9% 0.161 289.3);
Tailwind
colors: {
  custom: {
    50: '#bbaafa',
    500: '#9a87f7',
    950: '#000000',
  },
}
SCSS
$custom: #9a87f7;
$custom-light: #bbaafa;
$custom-dark: #000000;
JSON
{
  "hex": "#9a87f7",
  "rgb": {
    "r": 154,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 250.179,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.68924,
    "c": 0.16082,
    "h": 289.3
  },
  "luminance": 0.30913
}

Semantic roles & 50–950 ramp

primary
#9A87F7
secondary
#F0F5D6
accent
#E401BE
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9A87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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