#9870FA#9870FA

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

Color values

HEX#9870FA
RGBrgb(152, 112, 250)
HSLhsl(257, 93%, 71%)
HSVhsv(257, 55%, 98%)
CMYKcmyk(39.2%, 55.2%, 0%, 2%)
CIE-LABlab(57.24, 46.07, -63.75)
CIE-LCHlch(57.24, 78.66, 305.85°)
OKLaboklab(65.06% 0.0788 -0.1811)
OKLCHoklch(65.06% 0.198 293.5)
XYZxyz(35.9938, 25.1650, 93.3849)
Luminance0.2517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870FA #D2FA70
analogous
#708DFA #9870FA #DD70FA
triadic
#9870FA #FA9870 #70FA98
tetradic
#9870FA #FA708D #D2FA70 #70FADD
square
#9870FA #FA708D #D2FA70 #70FADD
split-complementary
#9870FA #FADD70 #8DFA70
monochromatic
#4908E8 #6D35F8 #9870FA #C3ABFC #EAE1FE

Accessibility & contrast

On white

3.48
#9870FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#9870FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870FA
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870FA#FFFFFF#000000##000000
##9870FA1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#298BFF
Deuteranopia (green-blind)
#3687F7
Tritanopia (blue-blind)
#7F8DAA
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9870fa;
/* rgb */ color: rgb(152, 112, 250);
/* oklch */ color: oklch(65.1% 0.198 293.5);
Tailwind
colors: {
  custom: {
    50: '#bb9afd',
    500: '#9870fa',
    950: '#000000',
  },
}
SCSS
$custom: #9870fa;
$custom-light: #bb9afd;
$custom-dark: #000000;
JSON
{
  "hex": "#9870fa",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 250
  },
  "hsl": {
    "h": 257.391,
    "s": 93.243,
    "l": 70.98
  },
  "oklch": {
    "l": 0.65058,
    "c": 0.19756,
    "h": 293.5
  },
  "luminance": 0.25166
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9870FA

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

Preview Lab → · Contrast checker → · Palette generator →

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