#9842C8#9842C8

#9842C8 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.3% C 0.205 H 310.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9842C8
RGBrgb(152, 66, 200)
HSLhsl(279, 55%, 52%)
HSVhsv(279, 67%, 78%)
CMYKcmyk(24%, 67%, 0%, 21.6%)
CIE-LABlab(45.28, 57.59, -54.72)
CIE-LCHlch(45.28, 79.44, 316.46°)
OKLaboklab(55.35% 0.134 -0.1545)
OKLCHoklch(55.35% 0.205 310.9)
XYZxyz(25.3205, 14.7425, 56.1441)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842C8 #72C842
analogous
#5542C8 #9842C8 #C842B5
triadic
#9842C8 #C89842 #42C898
tetradic
#9842C8 #C85542 #72C842 #42B5C8
square
#9842C8 #C85542 #72C842 #42B5C8
split-complementary
#9842C8 #B5C842 #42C855
monochromatic
#53206F #762E9F #9842C8 #B271D6 #CCA1E4

Accessibility & contrast

On white

5.32
#9842C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9842C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842C8
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842C8#FFFFFF#000000##FFFFFF
##9842C81.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#316DC5
Tritanopia (blue-blind)
#925E80
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9842c8;
/* rgb */ color: rgb(152, 66, 200);
/* oklch */ color: oklch(55.3% 0.205 310.9);
Tailwind
colors: {
  custom: {
    50: '#ba7dd9',
    500: '#9842c8',
    950: '#000000',
  },
}
SCSS
$custom: #9842c8;
$custom-light: #ba7dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9842c8",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 278.507,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55348,
    "c": 0.20452,
    "h": 310.9
  },
  "luminance": 0.14742
}

Semantic roles & 50–950 ramp

primary
#9842C8
secondary
#ABD096
accent
#DE4A7F
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9842C8

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

Preview Lab → · Contrast checker → · Palette generator →

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