#9837D0#9837D0

#9837D0 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.7% C 0.225 H 309.8°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9837D0
RGBrgb(152, 55, 208)
HSLhsl(278, 62%, 52%)
HSVhsv(278, 74%, 82%)
CMYKcmyk(26.9%, 73.6%, 0%, 18.4%)
CIE-LABlab(44.18, 63.92, -61.12)
CIE-LCHlch(44.18, 88.44, 316.28°)
OKLaboklab(54.74% 0.1441 -0.1732)
OKLCHoklch(54.74% 0.225 309.8)
XYZxyz(25.6980, 13.9624, 61.0035)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837D0 #6FD037
analogous
#4C37D0 #9837D0 #D037BC
triadic
#9837D0 #D09837 #37D098
tetradic
#9837D0 #D04C37 #6FD037 #37BCD0
square
#9837D0 #D04C37 #6FD037 #37BCD0
split-complementary
#9837D0 #BCD037 #37D04C
monochromatic
#521B72 #7626A3 #9837D0 #B269DC #CB9AE7

Accessibility & contrast

On white

5.54
#9837D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9837D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837D0
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837D0#FFFFFF#000000##FFFFFF
##9837D01.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D4
Deuteranopia (green-blind)
#0E6ACD
Tritanopia (blue-blind)
#905B81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9837d0;
/* rgb */ color: rgb(152, 55, 208);
/* oklch */ color: oklch(54.7% 0.225 309.8);
Tailwind
colors: {
  custom: {
    50: '#bb77df',
    500: '#9837d0',
    950: '#000000',
  },
}
SCSS
$custom: #9837d0;
$custom-light: #bb77df;
$custom-dark: #000000;
JSON
{
  "hex": "#9837d0",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 208
  },
  "hsl": {
    "h": 278.039,
    "s": 61.943,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54735,
    "c": 0.22536,
    "h": 309.8
  },
  "luminance": 0.13962
}

Semantic roles & 50–950 ramp

primary
#9837D0
secondary
#A8D390
accent
#E5437E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9837D0

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

Preview Lab → · Contrast checker → · Palette generator →

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