#9839D7#9839D7

#9839D7 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.4% C 0.230 H 307.9°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9839D7
RGBrgb(152, 57, 215)
HSLhsl(276, 66%, 53%)
HSVhsv(276, 73%, 84%)
CMYKcmyk(29.3%, 73.5%, 0%, 15.7%)
CIE-LABlab(44.95, 64.63, -63.89)
CIE-LCHlch(44.95, 90.88, 315.33°)
OKLaboklab(55.44% 0.1411 -0.1814)
OKLCHoklch(55.44% 0.23 307.9)
XYZxyz(26.6752, 14.5083, 65.6719)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839D7 #78D739
analogous
#4939D7 #9839D7 #D739C7
triadic
#9839D7 #D79839 #39D798
tetradic
#9839D7 #D74939 #78D739 #39C7D7
square
#9839D7 #D74939 #78D739 #39C7D7
split-complementary
#9839D7 #C7D739 #39D749
monochromatic
#55197C #7823AF #9839D7 #B26CE1 #CD9FEC

Accessibility & contrast

On white

5.38
#9839D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9839D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839D7
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839D7#FFFFFF#000000##FFFFFF
##9839D71.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#8E5F85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9839d7;
/* rgb */ color: rgb(152, 57, 215);
/* oklch */ color: oklch(55.4% 0.230 307.9);
Tailwind
colors: {
  custom: {
    50: '#bc78e4',
    500: '#9839d7',
    950: '#000000',
  },
}
SCSS
$custom: #9839d7;
$custom-light: #bc78e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9839d7",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 215
  },
  "hsl": {
    "h": 276.076,
    "s": 66.387,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5544,
    "c": 0.2298,
    "h": 307.9
  },
  "luminance": 0.14508
}

Semantic roles & 50–950 ramp

primary
#9839D7
secondary
#AFD894
accent
#E93E83
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9839D7

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

Preview Lab → · Contrast checker → · Palette generator →

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