#9839CC#9839CC

#9839CC is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.6% C 0.219 H 310.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9839CC
RGBrgb(152, 57, 204)
HSLhsl(279, 59%, 51%)
HSVhsv(279, 72%, 80%)
CMYKcmyk(25.5%, 72.1%, 0%, 20%)
CIE-LABlab(44.18, 62.28, -58.81)
CIE-LCHlch(44.18, 85.66, 316.64°)
OKLaboklab(54.65% 0.1429 -0.1665)
OKLCHoklch(54.65% 0.219 310.6)
XYZxyz(25.3090, 13.9619, 58.4767)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839CC #6DCC39
analogous
#4E39CC #9839CC #CC39B6
triadic
#9839CC #CC9839 #39CC98
tetradic
#9839CC #CC4E39 #6DCC39 #39B6CC
square
#9839CC #CC4E39 #6DCC39 #39B6CC
split-complementary
#9839CC #B6CC39 #39CC4E
monochromatic
#511C6E #75299F #9839CC #B16AD9 #CB9AE5

Accessibility & contrast

On white

5.54
#9839CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9839CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839CC
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839CC#FFFFFF#000000##FFFFFF
##9839CC1.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)
#0064D0
Deuteranopia (green-blind)
#1E6AC9
Tritanopia (blue-blind)
#915A7F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9839cc;
/* rgb */ color: rgb(152, 57, 204);
/* oklch */ color: oklch(54.6% 0.219 310.6);
Tailwind
colors: {
  custom: {
    50: '#bb78dc',
    500: '#9839cc',
    950: '#000000',
  },
}
SCSS
$custom: #9839cc;
$custom-light: #bb78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9839cc",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 204
  },
  "hsl": {
    "h": 278.776,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54647,
    "c": 0.21937,
    "h": 310.6
  },
  "luminance": 0.13961
}

Semantic roles & 50–950 ramp

primary
#9839CC
secondary
#A7D190
accent
#E2467D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9839CC

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

Preview Lab → · Contrast checker → · Palette generator →

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