#9872F9#9872F9

#9872F9 is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.3% C 0.194 H 293.3°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9872F9
RGBrgb(152, 114, 249)
HSLhsl(257, 92%, 71%)
HSVhsv(257, 54%, 98%)
CMYKcmyk(39%, 54.2%, 0%, 2.4%)
CIE-LABlab(57.61, 44.70, -62.60)
CIE-LCHlch(57.61, 76.92, 305.53°)
OKLaboklab(65.31% 0.0765 -0.1778)
OKLCHoklch(65.31% 0.194 293.3)
XYZxyz(36.0605, 25.5487, 92.6356)
Luminance0.2555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872F9 #D3F972
analogous
#728FF9 #9872F9 #DB72F9
triadic
#9872F9 #F99872 #72F998
tetradic
#9872F9 #F9728F #D3F972 #72F9DB
square
#9872F9 #F9728F #D3F972 #72F9DB
split-complementary
#9872F9 #F9DB72 #8FF972
monochromatic
#480AE7 #6D37F7 #9872F9 #C3ADFB #EAE2FE

Accessibility & contrast

On white

3.44
#9872F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#9872F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872F9
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872F9#FFFFFF#000000##000000
##9872F91.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#318CFE
Deuteranopia (green-blind)
#3B88F6
Tritanopia (blue-blind)
#7F8EAB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9872f9;
/* rgb */ color: rgb(152, 114, 249);
/* oklch */ color: oklch(65.3% 0.194 293.3);
Tailwind
colors: {
  custom: {
    50: '#bb9bfc',
    500: '#9872f9',
    950: '#000000',
  },
}
SCSS
$custom: #9872f9;
$custom-light: #bb9bfc;
$custom-dark: #000000;
JSON
{
  "hex": "#9872f9",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 249
  },
  "hsl": {
    "h": 256.889,
    "s": 91.837,
    "l": 71.176
  },
  "oklch": {
    "l": 0.65312,
    "c": 0.19352,
    "h": 293.3
  },
  "luminance": 0.2555
}

Semantic roles & 50–950 ramp

primary
#9872F9
secondary
#EBF5D2
accent
#E600A5
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9872F9

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

Preview Lab → · Contrast checker → · Palette generator →

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