#9870FB#9870FB

#9870FB is a light, vivid violet. Relative luminance 0.252; OKLCH L 65.1% C 0.199 H 293.4°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9870FB
RGBrgb(152, 112, 251)
HSLhsl(257, 95%, 71%)
HSVhsv(257, 55%, 98%)
CMYKcmyk(39.4%, 55.4%, 0%, 1.6%)
CIE-LABlab(57.30, 46.33, -64.21)
CIE-LCHlch(57.30, 79.18, 305.82°)
OKLaboklab(65.12% 0.0789 -0.1825)
OKLCHoklch(65.12% 0.199 293.4)
XYZxyz(36.1510, 25.2279, 94.2129)
Luminance0.2523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870FB #D3FB70
analogous
#708DFB #9870FB #DD70FB
triadic
#9870FB #FB9870 #70FB98
tetradic
#9870FB #FB708D #D3FB70 #70FBDD
square
#9870FB #FB708D #D3FB70 #70FBDD
split-complementary
#9870FB #FBDD70 #8DFB70
monochromatic
#4807EA #6D34F9 #9870FB #C3ACFD #EAE1FE

Accessibility & contrast

On white

3.47
#9870FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#9870FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870FB
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870FB#FFFFFF#000000##000000
##9870FB1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#278BFF
Deuteranopia (green-blind)
#3487F8
Tritanopia (blue-blind)
#7E8EAB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9870fb;
/* rgb */ color: rgb(152, 112, 251);
/* oklch */ color: oklch(65.1% 0.199 293.4);
Tailwind
colors: {
  custom: {
    50: '#bc9afd',
    500: '#9870fb',
    950: '#000000',
  },
}
SCSS
$custom: #9870fb;
$custom-light: #bc9afd;
$custom-dark: #000000;
JSON
{
  "hex": "#9870fb",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 251
  },
  "hsl": {
    "h": 257.266,
    "s": 94.558,
    "l": 71.176
  },
  "oklch": {
    "l": 0.65122,
    "c": 0.19879,
    "h": 293.4
  },
  "luminance": 0.25229
}

Semantic roles & 50–950 ramp

primary
#9870FB
secondary
#EBF6D1
accent
#E600A3
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9870FB

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

Preview Lab → · Contrast checker → · Palette generator →

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