#9870FD#9870FD

#9870FD is a light, highly saturated violet. Relative luminance 0.254; OKLCH L 65.3% C 0.201 H 293.1°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9870FD
RGBrgb(152, 112, 253)
HSLhsl(257, 97%, 72%)
HSVhsv(257, 56%, 99%)
CMYKcmyk(39.9%, 55.7%, 0%, 0.8%)
CIE-LABlab(57.42, 46.86, -65.12)
CIE-LCHlch(57.42, 80.22, 305.74°)
OKLaboklab(65.25% 0.0789 -0.1851)
OKLCHoklch(65.25% 0.201 293.1)
XYZxyz(36.4679, 25.3546, 95.8820)
Luminance0.2536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870FD #D5FD70
analogous
#708FFD #9870FD #DE70FD
triadic
#9870FD #FD9870 #70FD98
tetradic
#9870FD #FD708F #D5FD70 #70FDDE
square
#9870FD #FD708F #D5FD70 #70FDDE
split-complementary
#9870FD #FDDE70 #8FFD70
monochromatic
#4603EF #6D34FC #9870FD #C3ACFE #E9E1FF

Accessibility & contrast

On white

3.46
#9870FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#9870FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870FD
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870FD#FFFFFF#000000##000000
##9870FD1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#238CFF
Deuteranopia (green-blind)
#3187FA
Tritanopia (blue-blind)
#7D8EAC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9870fd;
/* rgb */ color: rgb(152, 112, 253);
/* oklch */ color: oklch(65.3% 0.201 293.1);
Tailwind
colors: {
  custom: {
    50: '#bc9aff',
    500: '#9870fd',
    950: '#000000',
  },
}
SCSS
$custom: #9870fd;
$custom-light: #bc9aff;
$custom-dark: #000000;
JSON
{
  "hex": "#9870fd",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 253
  },
  "hsl": {
    "h": 257.021,
    "s": 97.241,
    "l": 71.569
  },
  "oklch": {
    "l": 0.65252,
    "c": 0.20125,
    "h": 293.1
  },
  "luminance": 0.25356
}

Semantic roles & 50–950 ramp

primary
#9870FD
secondary
#ECF7D2
accent
#E600A4
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9870FD

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

Preview Lab → · Contrast checker → · Palette generator →

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