#9872ED#9872ED

#9872ED is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.6% C 0.178 H 295.2°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9872ED
RGBrgb(152, 114, 237)
HSLhsl(259, 77%, 69%)
HSVhsv(259, 52%, 93%)
CMYKcmyk(35.9%, 51.9%, 0%, 7.1%)
CIE-LABlab(56.90, 41.56, -57.07)
CIE-LCHlch(56.90, 70.60, 306.06°)
OKLaboklab(64.57% 0.076 -0.1615)
OKLCHoklch(64.57% 0.179 295.2)
XYZxyz(34.2483, 24.8238, 83.0914)
Luminance0.2482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872ED #C7ED72
analogous
#728AED #9872ED #D672ED
triadic
#9872ED #ED9872 #72ED98
tetradic
#9872ED #ED728A #C7ED72 #72EDD6
square
#9872ED #ED728A #C7ED72 #72EDD6
split-complementary
#9872ED #EDD672 #8AED72
monochromatic
#511ACB #703CE6 #9872ED #C0A8F4 #E7DFFB

Accessibility & contrast

On white

3.52
#9872ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#9872ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872ED
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872ED#FFFFFF#000000##000000
##9872ED1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#408AF1
Deuteranopia (green-blind)
#4987EA
Tritanopia (blue-blind)
#848BA5
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9872ed;
/* rgb */ color: rgb(152, 114, 237);
/* oklch */ color: oklch(64.6% 0.178 295.2);
Tailwind
colors: {
  custom: {
    50: '#ba9bf3',
    500: '#9872ed',
    950: '#000000',
  },
}
SCSS
$custom: #9872ed;
$custom-light: #ba9bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9872ed",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 237
  },
  "hsl": {
    "h": 258.537,
    "s": 77.358,
    "l": 68.824
  },
  "oklch": {
    "l": 0.64565,
    "c": 0.1785,
    "h": 295.2
  },
  "luminance": 0.24824
}

Semantic roles & 50–950 ramp

primary
#9872ED
secondary
#E4F0CB
accent
#DA0C9A
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9872ED

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

Preview Lab → · Contrast checker → · Palette generator →

#9872ED Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva