#9842D3#9842D3

#9842D3 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.1% C 0.215 H 308.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9842D3
RGBrgb(152, 66, 211)
HSLhsl(276, 62%, 54%)
HSVhsv(276, 69%, 83%)
CMYKcmyk(28%, 68.7%, 0%, 17.3%)
CIE-LABlab(46.01, 59.99, -59.89)
CIE-LCHlch(46.01, 84.76, 315.05°)
OKLaboklab(56.1% 0.1329 -0.1697)
OKLCHoklch(56.1% 0.216 308.1)
XYZxyz(26.6526, 15.2754, 63.1598)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842D3 #7DD342
analogous
#5042D3 #9842D3 #D342C6
triadic
#9842D3 #D39842 #42D398
tetradic
#9842D3 #D35042 #7DD342 #42C6D3
square
#9842D3 #D35042 #7DD342 #42C6D3
split-complementary
#9842D3 #C6D342 #42D350
monochromatic
#561D7D #7829AF #9842D3 #B374DF #CEA5EA

Accessibility & contrast

On white

5.18
#9842D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9842D3
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842D3#FFFFFF#000000##FFFFFF
##9842D31.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#1F6ED0
Tritanopia (blue-blind)
#8F6286
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9842d3;
/* rgb */ color: rgb(152, 66, 211);
/* oklch */ color: oklch(56.1% 0.215 308.1);
Tailwind
colors: {
  custom: {
    50: '#bb7de1',
    500: '#9842d3',
    950: '#000000',
  },
}
SCSS
$custom: #9842d3;
$custom-light: #bb7de1;
$custom-dark: #000000;
JSON
{
  "hex": "#9842d3",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 275.586,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56102,
    "c": 0.2155,
    "h": 308.1
  },
  "luminance": 0.15275
}

Semantic roles & 50–950 ramp

primary
#9842D3
secondary
#B3D79A
accent
#E54285
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9842D3

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

Preview Lab → · Contrast checker → · Palette generator →

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