#9837DF#9837DF

#9837DF is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.8% C 0.239 H 306.2°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9837DF
RGBrgb(152, 55, 223)
HSLhsl(275, 72%, 55%)
HSVhsv(275, 75%, 87%)
CMYKcmyk(31.8%, 75.3%, 0%, 12.5%)
CIE-LABlab(45.27, 67.13, -67.95)
CIE-LCHlch(45.27, 95.52, 314.65°)
OKLaboklab(55.85% 0.1413 -0.1933)
OKLCHoklch(55.85% 0.239 306.2)
XYZxyz(27.6314, 14.7358, 71.1864)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837DF #7EDF37
analogous
#4437DF #9837DF #DF37D2
triadic
#9837DF #DF9837 #37DF98
tetradic
#9837DF #DF4437 #7EDF37 #37D2DF
square
#9837DF #DF4437 #7EDF37 #37D2DF
split-complementary
#9837DF #D2DF37 #37DF44
monochromatic
#571586 #791EBB #9837DF #B36CE7 #CEA1F0

Accessibility & contrast

On white

5.32
#9837DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9837DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837DF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837DF#FFFFFF#000000##FFFFFF
##9837DF1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E4
Deuteranopia (green-blind)
#006CDC
Tritanopia (blue-blind)
#8B6189
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9837df;
/* rgb */ color: rgb(152, 55, 223);
/* oklch */ color: oklch(55.8% 0.239 306.2);
Tailwind
colors: {
  custom: {
    50: '#bc78ea',
    500: '#9837df',
    950: '#000000',
  },
}
SCSS
$custom: #9837df;
$custom-light: #bc78ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9837df",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 223
  },
  "hsl": {
    "h": 274.643,
    "s": 72.414,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55847,
    "c": 0.23942,
    "h": 306.2
  },
  "luminance": 0.14735
}

Semantic roles & 50–950 ramp

primary
#9837DF
secondary
#B3DC95
accent
#EF3986
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9837DF

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

Preview Lab → · Contrast checker → · Palette generator →

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