#9842D0#9842D0

#9842D0 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.213 H 308.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9842D0
RGBrgb(152, 66, 208)
HSLhsl(276, 60%, 54%)
HSVhsv(276, 68%, 82%)
CMYKcmyk(26.9%, 68.3%, 0%, 18.4%)
CIE-LABlab(45.81, 59.33, -58.49)
CIE-LCHlch(45.81, 83.31, 315.41°)
OKLaboklab(55.89% 0.1332 -0.1656)
OKLCHoklch(55.89% 0.213 308.8)
XYZxyz(26.2800, 15.1263, 61.1975)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842D0 #7AD042
analogous
#5142D0 #9842D0 #D042C1
triadic
#9842D0 #D09842 #42D098
tetradic
#9842D0 #D05142 #7AD042 #42C1D0
square
#9842D0 #D05142 #7AD042 #42C1D0
split-complementary
#9842D0 #C1D042 #42D051
monochromatic
#551E79 #782AAA #9842D0 #B373DC #CDA4E8

Accessibility & contrast

On white

5.22
#9842D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9842D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842D0
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842D0#FFFFFF#000000##FFFFFF
##9842D01.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D4
Deuteranopia (green-blind)
#256ECD
Tritanopia (blue-blind)
#906184
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9842d0;
/* rgb */ color: rgb(152, 66, 208);
/* oklch */ color: oklch(55.9% 0.213 308.8);
Tailwind
colors: {
  custom: {
    50: '#bb7ddf',
    500: '#9842d0',
    950: '#000000',
  },
}
SCSS
$custom: #9842d0;
$custom-light: #bb7ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#9842d0",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 276.338,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55893,
    "c": 0.21251,
    "h": 308.8
  },
  "luminance": 0.15126
}

Semantic roles & 50–950 ramp

primary
#9842D0
secondary
#B0D599
accent
#E34483
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9842D0

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

Preview Lab → · Contrast checker → · Palette generator →

#9842D0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva