#9837CD#9837CD

#9837CD is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.5% C 0.223 H 310.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#9837CD
RGBrgb(152, 55, 205)
HSLhsl(279, 60%, 51%)
HSVhsv(279, 73%, 80%)
CMYKcmyk(25.9%, 73.2%, 0%, 19.6%)
CIE-LABlab(43.97, 63.29, -59.73)
CIE-LCHlch(43.97, 87.03, 316.66°)
OKLaboklab(54.52% 0.1446 -0.1691)
OKLCHoklch(54.52% 0.223 310.5)
XYZxyz(25.3324, 13.8161, 59.0781)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837CD #6CCD37
analogous
#4D37CD #9837CD #CD37B7
triadic
#9837CD #CD9837 #37CD98
tetradic
#9837CD #CD4D37 #6CCD37 #37B7CD
square
#9837CD #CD4D37 #6CCD37 #37B7CD
split-complementary
#9837CD #B7CD37 #37CD4D
monochromatic
#511C6E #75289F #9837CD #B168D9 #CA99E5

Accessibility & contrast

On white

5.58
#9837CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#9837CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837CD
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837CD#FFFFFF#000000##FFFFFF
##9837CD1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#1869CA
Tritanopia (blue-blind)
#91597F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9837cd;
/* rgb */ color: rgb(152, 55, 205);
/* oklch */ color: oklch(54.5% 0.223 310.5);
Tailwind
colors: {
  custom: {
    50: '#bb77dd',
    500: '#9837cd',
    950: '#000000',
  },
}
SCSS
$custom: #9837cd;
$custom-light: #bb77dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9837cd",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 205
  },
  "hsl": {
    "h": 278.8,
    "s": 60,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5452,
    "c": 0.22254,
    "h": 310.5
  },
  "luminance": 0.13816
}

Semantic roles & 50–950 ramp

primary
#9837CD
secondary
#A6D18F
accent
#E3457D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9837CD

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

Preview Lab → · Contrast checker → · Palette generator →

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