#9870F8#9870F8

#9870F8 is a light, vivid violet. Relative luminance 0.250; OKLCH L 64.9% C 0.195 H 293.8°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9870F8
RGBrgb(152, 112, 248)
HSLhsl(258, 91%, 71%)
HSVhsv(258, 55%, 97%)
CMYKcmyk(38.7%, 54.8%, 0%, 2.7%)
CIE-LABlab(57.11, 45.55, -62.84)
CIE-LCHlch(57.11, 77.61, 305.93°)
OKLaboklab(64.93% 0.0788 -0.1785)
OKLCHoklch(64.93% 0.195 293.8)
XYZxyz(35.6819, 25.0402, 91.7420)
Luminance0.2504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870F8 #D0F870
analogous
#708CF8 #9870F8 #DC70F8
triadic
#9870F8 #F89870 #70F898
tetradic
#9870F8 #F8708C #D0F870 #70F8DC
square
#9870F8 #F8708C #D0F870 #70F8DC
split-complementary
#9870F8 #F8DC70 #8CF870
monochromatic
#4A0BE3 #6E36F5 #9870F8 #C2AAFB #EAE2FE

Accessibility & contrast

On white

3.50
#9870F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#9870F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870F8
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870F8#FFFFFF#000000##000000
##9870F81.003.506.016.01
#FFFFFF3.501.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D8BFD
Deuteranopia (green-blind)
#3987F5
Tritanopia (blue-blind)
#7F8DA9
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9870f8;
/* rgb */ color: rgb(152, 112, 248);
/* oklch */ color: oklch(64.9% 0.195 293.8);
Tailwind
colors: {
  custom: {
    50: '#bb9afb',
    500: '#9870f8',
    950: '#000000',
  },
}
SCSS
$custom: #9870f8;
$custom-light: #bb9afb;
$custom-dark: #000000;
JSON
{
  "hex": "#9870f8",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 248
  },
  "hsl": {
    "h": 257.647,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.64929,
    "c": 0.1951,
    "h": 293.8
  },
  "luminance": 0.25041
}

Semantic roles & 50–950 ramp

primary
#9870F8
secondary
#EAF4CF
accent
#E600A2
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9870F8

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

Preview Lab → · Contrast checker → · Palette generator →

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