#9A87F4#9A87F4

#9A87F4 is a light, vivid violet. Relative luminance 0.307; OKLCH L 68.8% C 0.157 H 289.6°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#9A87F4
RGBrgb(154, 135, 244)
HSLhsl(250, 83%, 74%)
HSVhsv(250, 45%, 96%)
CMYKcmyk(36.9%, 44.7%, 0%, 4.3%)
CIE-LABlab(62.28, 31.95, -52.38)
CIE-LCHlch(62.28, 61.35, 301.39°)
OKLaboklab(68.76% 0.0527 -0.1477)
OKLCHoklch(68.76% 0.157 289.6)
XYZxyz(38.3151, 30.7286, 89.4829)
Luminance0.3073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A87F4 #E1F487
analogous
#87ABF4 #9A87F4 #D187F4
triadic
#9A87F4 #F49A87 #87F49A
tetradic
#9A87F4 #F487AB #E1F487 #87F4D1
square
#9A87F4 #F487AB #E1F487 #87F4D1
split-complementary
#9A87F4 #F4D187 #ABF487
monochromatic
#3C17EA #6B4FEF #9A87F4 #C9BFF9 #E7E3FC

Accessibility & contrast

On white

2.94
#9A87F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#9A87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9A87F4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A87F4#FFFFFF#000000##000000
##9A87F41.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6199F8
Deuteranopia (green-blind)
#6294F1
Tritanopia (blue-blind)
#839CB2
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9a87f4;
/* rgb */ color: rgb(154, 135, 244);
/* oklch */ color: oklch(68.8% 0.157 289.6);
Tailwind
colors: {
  custom: {
    50: '#bbaaf8',
    500: '#9a87f4',
    950: '#000000',
  },
}
SCSS
$custom: #9a87f4;
$custom-light: #bbaaf8;
$custom-dark: #000000;
JSON
{
  "hex": "#9a87f4",
  "rgb": {
    "r": 154,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 250.459,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.68756,
    "c": 0.15681,
    "h": 289.6
  },
  "luminance": 0.3073
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9A87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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