#9842CE#9842CE

#9842CE is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.211 H 309.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9842CE
RGBrgb(152, 66, 206)
HSLhsl(277, 59%, 53%)
HSVhsv(277, 68%, 81%)
CMYKcmyk(26.2%, 68%, 0%, 19.2%)
CIE-LABlab(45.67, 58.89, -57.55)
CIE-LCHlch(45.67, 82.34, 315.66°)
OKLaboklab(55.76% 0.1334 -0.1628)
OKLCHoklch(55.76% 0.211 309.3)
XYZxyz(26.0355, 15.0285, 59.9098)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842CE #78CE42
analogous
#5242CE #9842CE #CE42BE
triadic
#9842CE #CE9842 #42CE98
tetradic
#9842CE #CE5242 #78CE42 #42BECE
square
#9842CE #CE5242 #78CE42 #42BECE
split-complementary
#9842CE #BECE42 #42CE52
monochromatic
#551F77 #782BA7 #9842CE #B273DB #CDA3E7

Accessibility & contrast

On white

5.24
#9842CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9842CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842CE
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842CE#FFFFFF#000000##FFFFFF
##9842CE1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#286DCB
Tritanopia (blue-blind)
#906083
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9842ce;
/* rgb */ color: rgb(152, 66, 206);
/* oklch */ color: oklch(55.8% 0.211 309.3);
Tailwind
colors: {
  custom: {
    50: '#bb7dde',
    500: '#9842ce',
    950: '#000000',
  },
}
SCSS
$custom: #9842ce;
$custom-light: #bb7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9842ce",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 276.857,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55755,
    "c": 0.21051,
    "h": 309.3
  },
  "luminance": 0.15028
}

Semantic roles & 50–950 ramp

primary
#9842CE
secondary
#AFD498
accent
#E24682
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9842CE

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

Preview Lab → · Contrast checker → · Palette generator →

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