#9837D3#9837D3

#9837D3 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 55.0% C 0.228 H 309.0°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9837D3
RGBrgb(152, 55, 211)
HSLhsl(277, 64%, 52%)
HSVhsv(277, 74%, 83%)
CMYKcmyk(28%, 73.9%, 0%, 17.3%)
CIE-LABlab(44.39, 64.56, -62.50)
CIE-LCHlch(44.39, 89.86, 315.93°)
OKLaboklab(54.95% 0.1436 -0.1773)
OKLCHoklch(54.95% 0.228 309)
XYZxyz(26.0706, 14.1114, 62.9658)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837D3 #72D337
analogous
#4A37D3 #9837D3 #D337C0
triadic
#9837D3 #D39837 #37D398
tetradic
#9837D3 #D34A37 #72D337 #37C0D3
square
#9837D3 #D34A37 #72D337 #37C0D3
split-complementary
#9837D3 #C0D337 #37D34A
monochromatic
#531A76 #7625A8 #9837D3 #B269DE #CC9BE9

Accessibility & contrast

On white

5.49
#9837D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#9837D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837D3
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837D3#FFFFFF#000000##FFFFFF
##9837D31.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D7
Deuteranopia (green-blind)
#006AD0
Tritanopia (blue-blind)
#8F5C83
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9837d3;
/* rgb */ color: rgb(152, 55, 211);
/* oklch */ color: oklch(55.0% 0.228 309.0);
Tailwind
colors: {
  custom: {
    50: '#bb77e1',
    500: '#9837d3',
    950: '#000000',
  },
}
SCSS
$custom: #9837d3;
$custom-light: #bb77e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9837d3",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 211
  },
  "hsl": {
    "h": 277.308,
    "s": 63.934,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54953,
    "c": 0.22816,
    "h": 309
  },
  "luminance": 0.14111
}

Semantic roles & 50–950 ramp

primary
#9837D3
secondary
#ABD591
accent
#E74180
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9837D3

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

Preview Lab → · Contrast checker → · Palette generator →

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