#9837CC#9837CC

#9837CC is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.4% C 0.222 H 310.8°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9837CC
RGBrgb(152, 55, 204)
HSLhsl(279, 59%, 51%)
HSVhsv(279, 73%, 80%)
CMYKcmyk(25.5%, 73%, 0%, 20%)
CIE-LABlab(43.90, 63.08, -59.27)
CIE-LCHlch(43.90, 86.55, 316.79°)
OKLaboklab(54.45% 0.1448 -0.1678)
OKLCHoklch(54.45% 0.222 310.8)
XYZxyz(25.2121, 13.7680, 58.4444)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837CC #6BCC37
analogous
#4D37CC #9837CC #CC37B6
triadic
#9837CC #CC9837 #37CC98
tetradic
#9837CC #CC4D37 #6BCC37 #37B6CC
square
#9837CC #CC4D37 #6BCC37 #37B6CC
split-complementary
#9837CC #B6CC37 #37CC4D
monochromatic
#511C6D #75289E #9837CC #B168D8 #CA99E5

Accessibility & contrast

On white

5.59
#9837CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#9837CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837CC
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837CC#FFFFFF#000000##FFFFFF
##9837CC1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#1A69C9
Tritanopia (blue-blind)
#91597F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9837cc;
/* rgb */ color: rgb(152, 55, 204);
/* oklch */ color: oklch(54.4% 0.222 310.8);
Tailwind
colors: {
  custom: {
    50: '#bb77dc',
    500: '#9837cc',
    950: '#000000',
  },
}
SCSS
$custom: #9837cc;
$custom-light: #bb77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9837cc",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 279.06,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54448,
    "c": 0.22161,
    "h": 310.8
  },
  "luminance": 0.13767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9837CC

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

Preview Lab → · Contrast checker → · Palette generator →

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