#9839CE#9839CE

#9839CE is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.8% C 0.221 H 310.1°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9839CE
RGBrgb(152, 57, 206)
HSLhsl(278, 60%, 52%)
HSVhsv(278, 72%, 81%)
CMYKcmyk(26.2%, 72.3%, 0%, 19.2%)
CIE-LABlab(44.32, 62.71, -59.74)
CIE-LCHlch(44.32, 86.61, 316.39°)
OKLaboklab(54.79% 0.1426 -0.1692)
OKLCHoklch(54.79% 0.221 310.1)
XYZxyz(25.5504, 14.0584, 59.7481)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839CE #6FCE39
analogous
#4E39CE #9839CE #CE39BA
triadic
#9839CE #CE9839 #39CE98
tetradic
#9839CE #CE4E39 #6FCE39 #39BACE
square
#9839CE #CE4E39 #6FCE39 #39BACE
split-complementary
#9839CE #BACE39 #39CE4E
monochromatic
#521C71 #7628A2 #9839CE #B26ADA #CB9BE6

Accessibility & contrast

On white

5.51
#9839CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#9839CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839CE
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839CE#FFFFFF#000000##FFFFFF
##9839CE1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#196ACB
Tritanopia (blue-blind)
#905B80
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9839ce;
/* rgb */ color: rgb(152, 57, 206);
/* oklch */ color: oklch(54.8% 0.221 310.1);
Tailwind
colors: {
  custom: {
    50: '#bb78de',
    500: '#9839ce',
    950: '#000000',
  },
}
SCSS
$custom: #9839ce;
$custom-light: #bb78de;
$custom-dark: #000000;
JSON
{
  "hex": "#9839ce",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 206
  },
  "hsl": {
    "h": 278.255,
    "s": 60.324,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54789,
    "c": 0.22126,
    "h": 310.1
  },
  "luminance": 0.14058
}

Semantic roles & 50–950 ramp

primary
#9839CE
secondary
#A8D291
accent
#E3447E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9839CE

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

Preview Lab → · Contrast checker → · Palette generator →

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