#9839CD#9839CD

#9839CD is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.7% C 0.220 H 310.4°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#9839CD
RGBrgb(152, 57, 205)
HSLhsl(279, 60%, 51%)
HSVhsv(279, 72%, 80%)
CMYKcmyk(25.9%, 72.2%, 0%, 19.6%)
CIE-LABlab(44.25, 62.50, -59.28)
CIE-LCHlch(44.25, 86.14, 316.51°)
OKLaboklab(54.72% 0.1427 -0.1678)
OKLCHoklch(54.72% 0.22 310.4)
XYZxyz(25.4293, 14.0100, 59.1104)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839CD #6ECD39
analogous
#4E39CD #9839CD #CD39B8
triadic
#9839CD #CD9839 #39CD98
tetradic
#9839CD #CD4E39 #6ECD39 #39B8CD
square
#9839CD #CD4E39 #6ECD39 #39B8CD
split-complementary
#9839CD #B8CD39 #39CD4E
monochromatic
#521C6F #7528A0 #9839CD #B16AD9 #CB9BE6

Accessibility & contrast

On white

5.52
#9839CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9839CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839CD
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839CD#FFFFFF#000000##FFFFFF
##9839CD1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#1C6ACA
Tritanopia (blue-blind)
#915B80
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9839cd;
/* rgb */ color: rgb(152, 57, 205);
/* oklch */ color: oklch(54.7% 0.220 310.4);
Tailwind
colors: {
  custom: {
    50: '#bb78dd',
    500: '#9839cd',
    950: '#000000',
  },
}
SCSS
$custom: #9839cd;
$custom-light: #bb78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9839cd",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 205
  },
  "hsl": {
    "h": 278.514,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54718,
    "c": 0.22031,
    "h": 310.4
  },
  "luminance": 0.14009
}

Semantic roles & 50–950 ramp

primary
#9839CD
secondary
#A8D290
accent
#E3457D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9839CD

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

Preview Lab → · Contrast checker → · Palette generator →

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