#9872FB#9872FB

#9872FB is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.4% C 0.196 H 293.0°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9872FB
RGBrgb(152, 114, 251)
HSLhsl(257, 94%, 72%)
HSVhsv(257, 55%, 98%)
CMYKcmyk(39.4%, 54.6%, 0%, 1.6%)
CIE-LABlab(57.73, 45.23, -63.52)
CIE-LCHlch(57.73, 77.97, 305.45°)
OKLaboklab(65.44% 0.0765 -0.1804)
OKLCHoklch(65.44% 0.196 293)
XYZxyz(36.3741, 25.6741, 94.2872)
Luminance0.2567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872FB #D5FB72
analogous
#7291FB #9872FB #DC72FB
triadic
#9872FB #FB9872 #72FB98
tetradic
#9872FB #FB7291 #D5FB72 #72FBDC
square
#9872FB #FB7291 #D5FB72 #72FBDC
split-complementary
#9872FB #FBDC72 #91FB72
monochromatic
#4607EC #6D36F9 #9872FB #C3AEFD #E9E1FE

Accessibility & contrast

On white

3.42
#9872FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#9872FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872FB
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872FB#FFFFFF#000000##000000
##9872FB1.003.426.136.13
#FFFFFF3.421.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E8CFF
Deuteranopia (green-blind)
#3988F8
Tritanopia (blue-blind)
#7E8FAC
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9872fb;
/* rgb */ color: rgb(152, 114, 251);
/* oklch */ color: oklch(65.4% 0.196 293.0);
Tailwind
colors: {
  custom: {
    50: '#bb9bfd',
    500: '#9872fb',
    950: '#000000',
  },
}
SCSS
$custom: #9872fb;
$custom-light: #bb9bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#9872fb",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 251
  },
  "hsl": {
    "h": 256.642,
    "s": 94.483,
    "l": 71.569
  },
  "oklch": {
    "l": 0.65439,
    "c": 0.196,
    "h": 293
  },
  "luminance": 0.25675
}

Semantic roles & 50–950 ramp

primary
#9872FB
secondary
#ECF6D3
accent
#E600A6
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9872FB

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

Preview Lab → · Contrast checker → · Palette generator →

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