#9872CF#9872CF

#9872CF is a light, vivid violet. Relative luminance 0.232; OKLCH L 62.8% C 0.140 H 301.3°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9872CF
RGBrgb(152, 114, 207)
HSLhsl(265, 49%, 63%)
HSVhsv(265, 45%, 81%)
CMYKcmyk(26.6%, 44.9%, 0%, 18.8%)
CIE-LABlab(55.29, 33.99, -42.77)
CIE-LCHlch(55.29, 54.63, 308.47°)
OKLaboklab(62.84% 0.0729 -0.1197)
OKLCHoklch(62.84% 0.14 301.3)
XYZxyz(30.2262, 23.2149, 61.9079)
Luminance0.2321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872CF #A9CF72
analogous
#727ACF #9872CF #C672CF
triadic
#9872CF #CF9872 #72CF98
tetradic
#9872CF #CF727A #A9CF72 #72CFC6
square
#9872CF #CF727A #A9CF72 #72CFC6
split-complementary
#9872CF #CFC672 #7ACF72
monochromatic
#5A3294 #7744BF #9872CF #B9A0DF #DBCDEE

Accessibility & contrast

On white

3.72
#9872CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#9872CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872CF
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872CF#FFFFFF#000000##000000
##9872CF1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5884D2
Deuteranopia (green-blind)
#6084CD
Tritanopia (blue-blind)
#8E8297
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9872cf;
/* rgb */ color: rgb(152, 114, 207);
/* oklch */ color: oklch(62.8% 0.140 301.3);
Tailwind
colors: {
  custom: {
    50: '#b89bde',
    500: '#9872cf',
    950: '#000000',
  },
}
SCSS
$custom: #9872cf;
$custom-light: #b89bde;
$custom-dark: #000000;
JSON
{
  "hex": "#9872cf",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 207
  },
  "hsl": {
    "h": 264.516,
    "s": 49.206,
    "l": 62.941
  },
  "oklch": {
    "l": 0.6284,
    "c": 0.14018,
    "h": 301.3
  },
  "luminance": 0.23215
}

Semantic roles & 50–950 ramp

primary
#9872CF
secondary
#D1DFBE
accent
#BD2980
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9872CF

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

Preview Lab → · Contrast checker → · Palette generator →

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