#8542CB#8542CB

#8542CB is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.3% C 0.203 H 302.4°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8542CB
RGBrgb(133, 66, 203)
HSLhsl(269, 57%, 53%)
HSVhsv(269, 67%, 80%)
CMYKcmyk(34.5%, 67.5%, 0%, 20.4%)
CIE-LABlab(43.06, 54.29, -60.17)
CIE-LCHlch(43.06, 81.04, 312.06°)
OKLaboklab(53.3% 0.1086 -0.1711)
OKLCHoklch(53.3% 0.203 302.4)
XYZxyz(22.3980, 13.1947, 57.8552)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8542CB #88CB42
analogous
#4244CB #8542CB #C942CB
triadic
#8542CB #CB8542 #42CB85
tetradic
#8542CB #CB4244 #88CB42 #42CBC9
square
#8542CB #CB4244 #88CB42 #42CBC9
split-complementary
#8542CB #CBC942 #44CB42
monochromatic
#482073 #672DA3 #8542CB #A472D8 #C3A2E5

Accessibility & contrast

On white

5.77
#8542CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8542CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8542CB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8542CB#FFFFFF#000000##FFFFFF
##8542CB1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#776181
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8542cb;
/* rgb */ color: rgb(133, 66, 203);
/* oklch */ color: oklch(53.3% 0.203 302.4);
Tailwind
colors: {
  custom: {
    50: '#ae7bdc',
    500: '#8542cb',
    950: '#000000',
  },
}
SCSS
$custom: #8542cb;
$custom-light: #ae7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8542cb",
  "rgb": {
    "r": 133,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 269.343,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53295,
    "c": 0.20268,
    "h": 302.4
  },
  "luminance": 0.13195
}

Semantic roles & 50–950 ramp

primary
#8542CB
secondary
#B5D297
accent
#E04896
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8542CB

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

Preview Lab → · Contrast checker → · Palette generator →

#8542CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva