#9837BF#9837BF

#9837BF is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.5% C 0.209 H 314.4°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#9837BF
RGBrgb(152, 55, 191)
HSLhsl(283, 55%, 48%)
HSVhsv(283, 71%, 75%)
CMYKcmyk(20.4%, 71.2%, 0%, 25.1%)
CIE-LABlab(43.02, 60.39, -53.13)
CIE-LCHlch(43.02, 80.44, 318.66°)
OKLaboklab(53.54% 0.1465 -0.1498)
OKLCHoklch(53.54% 0.209 314.4)
XYZxyz(23.7175, 13.1702, 50.5729)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837BF #5EBF37
analogous
#5437BF #9837BF #BF37A2
triadic
#9837BF #BF9837 #37BF98
tetradic
#9837BF #BF5437 #5EBF37 #37A2BF
square
#9837BF #BF5437 #5EBF37 #37A2BF
split-complementary
#9837BF #A2BF37 #37BF54
monochromatic
#4C1C60 #72298F #9837BF #B262D2 #C991DF

Accessibility & contrast

On white

5.78
#9837BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#9837BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837BF
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837BF#FFFFFF#000000##FFFFFF
##9837BF1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#3068BC
Tritanopia (blue-blind)
#945478
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9837bf;
/* rgb */ color: rgb(152, 55, 191);
/* oklch */ color: oklch(53.5% 0.209 314.4);
Tailwind
colors: {
  custom: {
    50: '#ba76d3',
    500: '#9837bf',
    950: '#000000',
  },
}
SCSS
$custom: #9837bf;
$custom-light: #ba76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9837bf",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 191
  },
  "hsl": {
    "h": 282.794,
    "s": 55.285,
    "l": 48.235
  },
  "oklch": {
    "l": 0.53544,
    "c": 0.20949,
    "h": 314.4
  },
  "luminance": 0.13169
}

Semantic roles & 50–950 ramp

primary
#9837BF
secondary
#9BCA88
accent
#DF4974
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9837BF

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

Preview Lab → · Contrast checker → · Palette generator →

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