#9837CA#9837CA

#9837CA is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.3% C 0.220 H 311.3°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#9837CA
RGBrgb(152, 55, 202)
HSLhsl(280, 58%, 50%)
HSVhsv(280, 73%, 79%)
CMYKcmyk(24.8%, 72.8%, 0%, 20.8%)
CIE-LABlab(43.76, 62.66, -58.33)
CIE-LCHlch(43.76, 85.61, 317.05°)
OKLaboklab(54.31% 0.1451 -0.165)
OKLCHoklch(54.31% 0.22 311.3)
XYZxyz(24.9737, 13.6727, 57.1892)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837CA #69CA37
analogous
#4E37CA #9837CA #CA37B2
triadic
#9837CA #CA9837 #37CA98
tetradic
#9837CA #CA4E37 #69CA37 #37B2CA
square
#9837CA #CA4E37 #69CA37 #37B2CA
split-complementary
#9837CA #B2CA37 #37CA4E
monochromatic
#501C6A #74299B #9837CA #B167D7 #CA98E4

Accessibility & contrast

On white

5.62
#9837CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9837CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837CA
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837CA#FFFFFF#000000##FFFFFF
##9837CA1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#1F69C7
Tritanopia (blue-blind)
#92587E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9837ca;
/* rgb */ color: rgb(152, 55, 202);
/* oklch */ color: oklch(54.3% 0.220 311.3);
Tailwind
colors: {
  custom: {
    50: '#bb77db',
    500: '#9837ca',
    950: '#000000',
  },
}
SCSS
$custom: #9837ca;
$custom-light: #bb77db;
$custom-dark: #000000;
JSON
{
  "hex": "#9837ca",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 202
  },
  "hsl": {
    "h": 279.592,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54306,
    "c": 0.21974,
    "h": 311.3
  },
  "luminance": 0.13672
}

Semantic roles & 50–950 ramp

primary
#9837CA
secondary
#A4CF8E
accent
#E1467B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9837CA

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

Preview Lab → · Contrast checker → · Palette generator →

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