#9837CB#9837CB

#9837CB is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.4% C 0.221 H 311.0°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#9837CB
RGBrgb(152, 55, 203)
HSLhsl(279, 59%, 51%)
HSVhsv(279, 73%, 80%)
CMYKcmyk(25.1%, 72.9%, 0%, 20.4%)
CIE-LABlab(43.83, 62.87, -58.80)
CIE-LCHlch(43.83, 86.08, 316.92°)
OKLaboklab(54.38% 0.1449 -0.1664)
OKLCHoklch(54.38% 0.221 311)
XYZxyz(25.0925, 13.7202, 57.8148)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837CB #6ACB37
analogous
#4E37CB #9837CB #CB37B4
triadic
#9837CB #CB9837 #37CB98
tetradic
#9837CB #CB4E37 #6ACB37 #37B4CB
square
#9837CB #CB4E37 #6ACB37 #37B4CB
split-complementary
#9837CB #B4CB37 #37CB4E
monochromatic
#501C6C #74299C #9837CB #B168D8 #CA98E4

Accessibility & contrast

On white

5.61
#9837CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#9837CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837CB
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837CB#FFFFFF#000000##FFFFFF
##9837CB1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#1D69C8
Tritanopia (blue-blind)
#91597E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9837cb;
/* rgb */ color: rgb(152, 55, 203);
/* oklch */ color: oklch(54.4% 0.221 311.0);
Tailwind
colors: {
  custom: {
    50: '#bb77dc',
    500: '#9837cb',
    950: '#000000',
  },
}
SCSS
$custom: #9837cb;
$custom-light: #bb77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9837cb",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 203
  },
  "hsl": {
    "h": 279.324,
    "s": 58.73,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54377,
    "c": 0.22067,
    "h": 311
  },
  "luminance": 0.1372
}

Semantic roles & 50–950 ramp

primary
#9837CB
secondary
#A5D08E
accent
#E2467C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9837CB

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

Preview Lab → · Contrast checker → · Palette generator →

#9837CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva