#9839D0#9839D0

#9839D0 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.9% C 0.223 H 309.6°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9839D0
RGBrgb(152, 57, 208)
HSLhsl(278, 62%, 52%)
HSVhsv(278, 73%, 82%)
CMYKcmyk(26.9%, 72.6%, 0%, 18.4%)
CIE-LABlab(44.46, 63.13, -60.67)
CIE-LCHlch(44.46, 87.56, 316.14°)
OKLaboklab(54.93% 0.1423 -0.1719)
OKLCHoklch(54.93% 0.223 309.6)
XYZxyz(25.7949, 14.1562, 61.0358)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839D0 #71D039
analogous
#4C39D0 #9839D0 #D039BD
triadic
#9839D0 #D09839 #39D098
tetradic
#9839D0 #D04C39 #71D039 #39BDD0
square
#9839D0 #D04C39 #71D039 #39BDD0
split-complementary
#9839D0 #BDD039 #39D04C
monochromatic
#531B73 #7627A5 #9839D0 #B26ADC #CB9CE7

Accessibility & contrast

On white

5.48
#9839D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9839D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839D0
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839D0#FFFFFF#000000##FFFFFF
##9839D01.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D4
Deuteranopia (green-blind)
#146ACD
Tritanopia (blue-blind)
#905C82
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9839d0;
/* rgb */ color: rgb(152, 57, 208);
/* oklch */ color: oklch(54.9% 0.223 309.6);
Tailwind
colors: {
  custom: {
    50: '#bb78df',
    500: '#9839d0',
    950: '#000000',
  },
}
SCSS
$custom: #9839d0;
$custom-light: #bb78df;
$custom-dark: #000000;
JSON
{
  "hex": "#9839d0",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 208
  },
  "hsl": {
    "h": 277.748,
    "s": 61.633,
    "l": 51.961
  },
  "oklch": {
    "l": 0.54932,
    "c": 0.22315,
    "h": 309.6
  },
  "luminance": 0.14156
}

Semantic roles & 50–950 ramp

primary
#9839D0
secondary
#AAD391
accent
#E5437F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9839D0

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

Preview Lab → · Contrast checker → · Palette generator →

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