#9839DA#9839DA

#9839DA is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.7% C 0.233 H 307.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9839DA
RGBrgb(152, 57, 218)
HSLhsl(275, 69%, 54%)
HSVhsv(275, 74%, 85%)
CMYKcmyk(30.3%, 73.9%, 0%, 14.5%)
CIE-LABlab(45.17, 65.28, -65.25)
CIE-LCHlch(45.17, 92.30, 315.01°)
OKLaboklab(55.66% 0.1405 -0.1854)
OKLCHoklch(55.66% 0.233 307.2)
XYZxyz(27.0642, 14.6640, 67.7207)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839DA #7BDA39
analogous
#4839DA #9839DA #DA39CC
triadic
#9839DA #DA9839 #39DA98
tetradic
#9839DA #DA4839 #7BDA39 #39CCDA
square
#9839DA #DA4839 #7BDA39 #39CCDA
split-complementary
#9839DA #CCDA39 #39DA48
monochromatic
#561881 #7822B4 #9839DA #B36DE4 #CEA0ED

Accessibility & contrast

On white

5.34
#9839DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9839DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839DA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839DA#FFFFFF#000000##FFFFFF
##9839DA1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DF
Deuteranopia (green-blind)
#006CD7
Tritanopia (blue-blind)
#8D6087
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9839da;
/* rgb */ color: rgb(152, 57, 218);
/* oklch */ color: oklch(55.7% 0.233 307.2);
Tailwind
colors: {
  custom: {
    50: '#bc79e6',
    500: '#9839da',
    950: '#000000',
  },
}
SCSS
$custom: #9839da;
$custom-light: #bc79e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9839da",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 218
  },
  "hsl": {
    "h": 275.404,
    "s": 68.511,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55662,
    "c": 0.23263,
    "h": 307.2
  },
  "luminance": 0.14664
}

Semantic roles & 50–950 ramp

primary
#9839DA
secondary
#B1DA95
accent
#EB3C84
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9839DA

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

Preview Lab → · Contrast checker → · Palette generator →

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