#9870F9#9870F9

#9870F9 is a light, vivid violet. Relative luminance 0.251; OKLCH L 65.0% C 0.196 H 293.7°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9870F9
RGBrgb(152, 112, 249)
HSLhsl(258, 92%, 71%)
HSVhsv(258, 55%, 98%)
CMYKcmyk(39%, 55%, 0%, 2.4%)
CIE-LABlab(57.18, 45.81, -63.30)
CIE-LCHlch(57.18, 78.13, 305.89°)
OKLaboklab(64.99% 0.0788 -0.1798)
OKLCHoklch(64.99% 0.196 293.7)
XYZxyz(35.8374, 25.1024, 92.5613)
Luminance0.2510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870F9 #D1F970
analogous
#708CF9 #9870F9 #DC70F9
triadic
#9870F9 #F99870 #70F998
tetradic
#9870F9 #F9708C #D1F970 #70F9DC
square
#9870F9 #F9708C #D1F970 #70F9DC
split-complementary
#9870F9 #F9DC70 #8CF970
monochromatic
#4A0AE5 #6E35F7 #9870F9 #C2ABFB #EAE2FE

Accessibility & contrast

On white

3.49
#9870F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#9870F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870F9
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870F9#FFFFFF#000000##000000
##9870F91.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B8BFE
Deuteranopia (green-blind)
#3787F6
Tritanopia (blue-blind)
#7F8DAA
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9870f9;
/* rgb */ color: rgb(152, 112, 249);
/* oklch */ color: oklch(65.0% 0.196 293.7);
Tailwind
colors: {
  custom: {
    50: '#bb9afc',
    500: '#9870f9',
    950: '#000000',
  },
}
SCSS
$custom: #9870f9;
$custom-light: #bb9afc;
$custom-dark: #000000;
JSON
{
  "hex": "#9870f9",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 249
  },
  "hsl": {
    "h": 257.518,
    "s": 91.946,
    "l": 70.784
  },
  "oklch": {
    "l": 0.64993,
    "c": 0.19633,
    "h": 293.7
  },
  "luminance": 0.25103
}

Semantic roles & 50–950 ramp

primary
#9870F9
secondary
#EAF5D0
accent
#E600A2
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9870F9

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

Preview Lab → · Contrast checker → · Palette generator →

#9870F9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva