#9839D2#9839D2

#9839D2 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 55.1% C 0.225 H 309.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9839D2
RGBrgb(152, 57, 210)
HSLhsl(277, 63%, 52%)
HSVhsv(277, 73%, 82%)
CMYKcmyk(27.6%, 72.9%, 0%, 17.6%)
CIE-LABlab(44.60, 63.56, -61.60)
CIE-LCHlch(44.60, 88.51, 315.90°)
OKLaboklab(55.08% 0.1419 -0.1746)
OKLCHoklch(55.08% 0.225 309.1)
XYZxyz(26.0425, 14.2553, 62.3399)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839D2 #73D239
analogous
#4C39D2 #9839D2 #D239BF
triadic
#9839D2 #D29839 #39D298
tetradic
#9839D2 #D24C39 #73D239 #39BFD2
square
#9839D2 #D24C39 #73D239 #39BFD2
split-complementary
#9839D2 #BFD239 #39D24C
monochromatic
#531B76 #7726A8 #9839D2 #B26BDD #CC9DE9

Accessibility & contrast

On white

5.45
#9839D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9839D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839D2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839D2#FFFFFF#000000##FFFFFF
##9839D21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0C6BCF
Tritanopia (blue-blind)
#8F5D83
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9839d2;
/* rgb */ color: rgb(152, 57, 210);
/* oklch */ color: oklch(55.1% 0.225 309.1);
Tailwind
colors: {
  custom: {
    50: '#bb78e1',
    500: '#9839d2',
    950: '#000000',
  },
}
SCSS
$custom: #9839d2;
$custom-light: #bb78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9839d2",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 210
  },
  "hsl": {
    "h": 277.255,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55076,
    "c": 0.22505,
    "h": 309.1
  },
  "luminance": 0.14255
}

Semantic roles & 50–950 ramp

primary
#9839D2
secondary
#ABD592
accent
#E64280
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9839D2

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

Preview Lab → · Contrast checker → · Palette generator →

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