#9839CF#9839CF

#9839CF is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.9% C 0.222 H 309.9°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#9839CF
RGBrgb(152, 57, 207)
HSLhsl(278, 61%, 52%)
HSVhsv(278, 72%, 81%)
CMYKcmyk(26.6%, 72.5%, 0%, 18.8%)
CIE-LABlab(44.39, 62.92, -60.21)
CIE-LCHlch(44.39, 87.09, 316.26°)
OKLaboklab(54.86% 0.1424 -0.1706)
OKLCHoklch(54.86% 0.222 309.9)
XYZxyz(25.6723, 14.1072, 60.3900)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839CF #70CF39
analogous
#4D39CF #9839CF #CF39BB
triadic
#9839CF #CF9839 #39CF98
tetradic
#9839CF #CF4D39 #70CF39 #39BBCF
square
#9839CF #CF4D39 #70CF39 #39BBCF
split-complementary
#9839CF #BBCF39 #39CF4D
monochromatic
#521C72 #7628A3 #9839CF #B26ADB #CB9CE7

Accessibility & contrast

On white

5.50
#9839CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#9839CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839CF
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839CF#FFFFFF#000000##FFFFFF
##9839CF1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#176ACC
Tritanopia (blue-blind)
#905B81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9839cf;
/* rgb */ color: rgb(152, 57, 207);
/* oklch */ color: oklch(54.9% 0.222 309.9);
Tailwind
colors: {
  custom: {
    50: '#bb78df',
    500: '#9839cf',
    950: '#000000',
  },
}
SCSS
$custom: #9839cf;
$custom-light: #bb78df;
$custom-dark: #000000;
JSON
{
  "hex": "#9839cf",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 207
  },
  "hsl": {
    "h": 278,
    "s": 60.976,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5486,
    "c": 0.2222,
    "h": 309.9
  },
  "luminance": 0.14107
}

Semantic roles & 50–950 ramp

primary
#9839CF
secondary
#A9D391
accent
#E4447F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9839CF

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

Preview Lab → · Contrast checker → · Palette generator →

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