#9842D4#9842D4

#9842D4 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.2% C 0.217 H 307.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9842D4
RGBrgb(152, 66, 212)
HSLhsl(275, 63%, 55%)
HSVhsv(275, 69%, 83%)
CMYKcmyk(28.3%, 68.9%, 0%, 16.9%)
CIE-LABlab(46.08, 60.21, -60.35)
CIE-LCHlch(46.08, 85.25, 314.93°)
OKLaboklab(56.17% 0.1328 -0.171)
OKLCHoklch(56.17% 0.217 307.8)
XYZxyz(26.7783, 15.3257, 63.8221)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842D4 #7ED442
analogous
#4F42D4 #9842D4 #D442C7
triadic
#9842D4 #D49842 #42D498
tetradic
#9842D4 #D44F42 #7ED442 #42C7D4
square
#9842D4 #D44F42 #7ED442 #42C7D4
split-complementary
#9842D4 #C7D442 #42D44F
monochromatic
#571D7F #7928B1 #9842D4 #B374DF #CEA6EB

Accessibility & contrast

On white

5.17
#9842D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9842D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842D4
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842D4#FFFFFF#000000##FFFFFF
##9842D41.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#1D6ED1
Tritanopia (blue-blind)
#8E6286
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9842d4;
/* rgb */ color: rgb(152, 66, 212);
/* oklch */ color: oklch(56.2% 0.217 307.8);
Tailwind
colors: {
  custom: {
    50: '#bb7de2',
    500: '#9842d4',
    950: '#000000',
  },
}
SCSS
$custom: #9842d4;
$custom-light: #bb7de2;
$custom-dark: #000000;
JSON
{
  "hex": "#9842d4",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 275.342,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56172,
    "c": 0.21651,
    "h": 307.8
  },
  "luminance": 0.15325
}

Semantic roles & 50–950 ramp

primary
#9842D4
secondary
#B3D89A
accent
#E64285
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9842D4

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

Preview Lab → · Contrast checker → · Palette generator →

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