#9870F0#9870F0

#9870F0 is a light, vivid violet. Relative luminance 0.246; OKLCH L 64.4% C 0.185 H 295.1°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#9870F0
RGBrgb(152, 112, 240)
HSLhsl(259, 81%, 69%)
HSVhsv(259, 53%, 94%)
CMYKcmyk(36.7%, 53.3%, 0%, 5.9%)
CIE-LABlab(56.64, 43.46, -59.16)
CIE-LCHlch(56.64, 73.41, 306.30°)
OKLaboklab(64.43% 0.0786 -0.1677)
OKLCHoklch(64.43% 0.185 295.1)
XYZxyz(34.4672, 24.5543, 85.3447)
Luminance0.2455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870F0 #C8F070
analogous
#7088F0 #9870F0 #D870F0
triadic
#9870F0 #F09870 #70F098
tetradic
#9870F0 #F07088 #C8F070 #70F0D8
square
#9870F0 #F07088 #C8F070 #70F0D8
split-complementary
#9870F0 #F0D870 #88F070
monochromatic
#5016D0 #7039EA #9870F0 #C0A7F6 #E8DFFC

Accessibility & contrast

On white

3.55
#9870F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#9870F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870F0
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870F0#FFFFFF#000000##000000
##9870F01.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3889F4
Deuteranopia (green-blind)
#4386ED
Tritanopia (blue-blind)
#838AA5
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9870f0;
/* rgb */ color: rgb(152, 112, 240);
/* oklch */ color: oklch(64.4% 0.185 295.1);
Tailwind
colors: {
  custom: {
    50: '#bb9af6',
    500: '#9870f0',
    950: '#000000',
  },
}
SCSS
$custom: #9870f0;
$custom-light: #bb9af6;
$custom-dark: #000000;
JSON
{
  "hex": "#9870f0",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 240
  },
  "hsl": {
    "h": 258.75,
    "s": 81.013,
    "l": 69.02
  },
  "oklch": {
    "l": 0.64425,
    "c": 0.18517,
    "h": 295.1
  },
  "luminance": 0.24555
}

Semantic roles & 50–950 ramp

primary
#9870F0
secondary
#E5F1CB
accent
#DD089B
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9870F0

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

Preview Lab → · Contrast checker → · Palette generator →

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