#9842D9#9842D9

#9842D9 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.5% C 0.222 H 306.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9842D9
RGBrgb(152, 66, 217)
HSLhsl(274, 67%, 55%)
HSVhsv(274, 70%, 85%)
CMYKcmyk(30%, 69.6%, 0%, 14.9%)
CIE-LABlab(46.42, 61.32, -62.65)
CIE-LCHlch(46.42, 87.67, 314.38°)
OKLaboklab(56.53% 0.1321 -0.1778)
OKLCHoklch(56.53% 0.222 306.6)
XYZxyz(27.4188, 15.5819, 67.1953)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842D9 #83D942
analogous
#4C42D9 #9842D9 #D942CF
triadic
#9842D9 #D99842 #42D998
tetradic
#9842D9 #D94C42 #83D942 #42CFD9
square
#9842D9 #D94C42 #83D942 #42CFD9
split-complementary
#9842D9 #CFD942 #42D94C
monochromatic
#581B86 #7925B9 #9842D9 #B475E3 #D0A8ED

Accessibility & contrast

On white

5.10
#9842D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#9842D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842D9
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842D9#FFFFFF#000000##FFFFFF
##9842D91.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#0D6FD6
Tritanopia (blue-blind)
#8D6489
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9842d9;
/* rgb */ color: rgb(152, 66, 217);
/* oklch */ color: oklch(56.5% 0.222 306.6);
Tailwind
colors: {
  custom: {
    50: '#bb7de6',
    500: '#9842d9',
    950: '#000000',
  },
}
SCSS
$custom: #9842d9;
$custom-light: #bb7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9842d9",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 274.172,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56526,
    "c": 0.22151,
    "h": 306.6
  },
  "luminance": 0.15582
}

Semantic roles & 50–950 ramp

primary
#9842D9
secondary
#B7DB9C
accent
#E93E88
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9842D9

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

Preview Lab → · Contrast checker → · Palette generator →

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