#9842DB#9842DB

#9842DB is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.7% C 0.224 H 306.1°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9842DB
RGBrgb(152, 66, 219)
HSLhsl(274, 68%, 56%)
HSVhsv(274, 70%, 86%)
CMYKcmyk(30.6%, 69.9%, 0%, 14.1%)
CIE-LABlab(46.56, 61.76, -63.57)
CIE-LCHlch(46.56, 88.63, 314.17°)
OKLaboklab(56.67% 0.1318 -0.1805)
OKLCHoklch(56.67% 0.224 306.1)
XYZxyz(27.6805, 15.6866, 68.5737)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842DB #85DB42
analogous
#4B42DB #9842DB #DB42D2
triadic
#9842DB #DB9842 #42DB98
tetradic
#9842DB #DB4B42 #85DB42 #42D2DB
square
#9842DB #DB4B42 #85DB42 #42D2DB
split-complementary
#9842DB #D2DB42 #42DB4B
monochromatic
#581A89 #7924BC #9842DB #B475E5 #D0A9EF

Accessibility & contrast

On white

5.08
#9842DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9842DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842DB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842DB#FFFFFF#000000##FFFFFF
##9842DB1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#026FD8
Tritanopia (blue-blind)
#8C658A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9842db;
/* rgb */ color: rgb(152, 66, 219);
/* oklch */ color: oklch(56.7% 0.224 306.1);
Tailwind
colors: {
  custom: {
    50: '#bb7de7',
    500: '#9842db',
    950: '#000000',
  },
}
SCSS
$custom: #9842db;
$custom-light: #bb7de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9842db",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 273.725,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56669,
    "c": 0.22351,
    "h": 306.1
  },
  "luminance": 0.15686
}

Semantic roles & 50–950 ramp

primary
#9842DB
secondary
#B8DC9D
accent
#EB3D89
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9842DB

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

Preview Lab → · Contrast checker → · Palette generator →

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