#9842D7#9842D7

#9842D7 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.4% C 0.220 H 307.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9842D7
RGBrgb(152, 66, 215)
HSLhsl(275, 65%, 55%)
HSVhsv(275, 69%, 84%)
CMYKcmyk(29.3%, 69.3%, 0%, 15.7%)
CIE-LABlab(46.28, 60.87, -61.73)
CIE-LCHlch(46.28, 86.70, 314.60°)
OKLaboklab(56.38% 0.1324 -0.1751)
OKLCHoklch(56.38% 0.22 307.1)
XYZxyz(27.1602, 15.4785, 65.8336)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842D7 #81D742
analogous
#4D42D7 #9842D7 #D742CC
triadic
#9842D7 #D79842 #42D798
tetradic
#9842D7 #D74D42 #81D742 #42CCD7
square
#9842D7 #D74D42 #81D742 #42CCD7
split-complementary
#9842D7 #CCD742 #42D74D
monochromatic
#571C83 #7926B5 #9842D7 #B475E2 #CFA7EC

Accessibility & contrast

On white

5.13
#9842D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9842D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842D7
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842D7#FFFFFF#000000##FFFFFF
##9842D71.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#156ED4
Tritanopia (blue-blind)
#8E6488
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9842d7;
/* rgb */ color: rgb(152, 66, 215);
/* oklch */ color: oklch(56.4% 0.220 307.1);
Tailwind
colors: {
  custom: {
    50: '#bb7de4',
    500: '#9842d7',
    950: '#000000',
  },
}
SCSS
$custom: #9842d7;
$custom-light: #bb7de4;
$custom-dark: #000000;
JSON
{
  "hex": "#9842d7",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 274.631,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56384,
    "c": 0.21951,
    "h": 307.1
  },
  "luminance": 0.15478
}

Semantic roles & 50–950 ramp

primary
#9842D7
secondary
#B6DA9B
accent
#E84087
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9842D7

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

Preview Lab → · Contrast checker → · Palette generator →

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