#9839CA#9839CA

#9839CA is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.5% C 0.217 H 311.2°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#9839CA
RGBrgb(152, 57, 202)
HSLhsl(279, 58%, 51%)
HSVhsv(279, 72%, 79%)
CMYKcmyk(24.8%, 71.8%, 0%, 20.8%)
CIE-LABlab(44.04, 61.86, -57.88)
CIE-LCHlch(44.04, 84.72, 316.91°)
OKLaboklab(54.51% 0.1431 -0.1637)
OKLCHoklch(54.51% 0.217 311.2)
XYZxyz(25.0707, 13.8665, 57.2215)
Luminance0.1387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839CA #6BCA39
analogous
#4F39CA #9839CA #CA39B4
triadic
#9839CA #CA9839 #39CA98
tetradic
#9839CA #CA4F39 #6BCA39 #39B4CA
square
#9839CA #CA4F39 #6BCA39 #39B4CA
split-complementary
#9839CA #B4CA39 #39CA4F
monochromatic
#511D6C #752A9C #9839CA #B169D7 #CA9AE4

Accessibility & contrast

On white

5.57
#9839CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#9839CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839CA
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839CA#FFFFFF#000000##FFFFFF
##9839CA1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#226AC7
Tritanopia (blue-blind)
#92597E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9839ca;
/* rgb */ color: rgb(152, 57, 202);
/* oklch */ color: oklch(54.5% 0.217 311.2);
Tailwind
colors: {
  custom: {
    50: '#bb78db',
    500: '#9839ca',
    950: '#000000',
  },
}
SCSS
$custom: #9839ca;
$custom-light: #bb78db;
$custom-dark: #000000;
JSON
{
  "hex": "#9839ca",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 202
  },
  "hsl": {
    "h": 279.31,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54506,
    "c": 0.21747,
    "h": 311.2
  },
  "luminance": 0.13866
}

Semantic roles & 50–950 ramp

primary
#9839CA
secondary
#A5D08F
accent
#E1477C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9839CA

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

Preview Lab → · Contrast checker → · Palette generator →

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