#9837CF#9837CF

#9837CF is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.7% C 0.224 H 310.0°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9837CF
RGBrgb(152, 55, 207)
HSLhsl(278, 61%, 51%)
HSVhsv(278, 73%, 81%)
CMYKcmyk(26.6%, 73.4%, 0%, 18.8%)
CIE-LABlab(44.11, 63.71, -60.66)
CIE-LCHlch(44.11, 87.97, 316.41°)
OKLaboklab(54.66% 0.1443 -0.1719)
OKLCHoklch(54.66% 0.224 310)
XYZxyz(25.5753, 13.9133, 60.3576)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837CF #6ECF37
analogous
#4C37CF #9837CF #CF37BA
triadic
#9837CF #CF9837 #37CF98
tetradic
#9837CF #CF4C37 #6ECF37 #37BACF
square
#9837CF #CF4C37 #6ECF37 #37BACF
split-complementary
#9837CF #BACF37 #37CF4C
monochromatic
#521B71 #7527A2 #9837CF #B168DB #CB9AE7

Accessibility & contrast

On white

5.55
#9837CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9837CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837CF
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837CF#FFFFFF#000000##FFFFFF
##9837CF1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#126ACC
Tritanopia (blue-blind)
#905A80
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9837cf;
/* rgb */ color: rgb(152, 55, 207);
/* oklch */ color: oklch(54.7% 0.224 310.0);
Tailwind
colors: {
  custom: {
    50: '#bb77df',
    500: '#9837cf',
    950: '#000000',
  },
}
SCSS
$custom: #9837cf;
$custom-light: #bb77df;
$custom-dark: #000000;
JSON
{
  "hex": "#9837cf",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 207
  },
  "hsl": {
    "h": 278.289,
    "s": 61.29,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54663,
    "c": 0.22442,
    "h": 310
  },
  "luminance": 0.13913
}

Semantic roles & 50–950 ramp

primary
#9837CF
secondary
#A8D28F
accent
#E4437E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9837CF

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

Preview Lab → · Contrast checker → · Palette generator →

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