#8B42CA#8B42CA

#8B42CA is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 53.9% C 0.203 H 305.1°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8B42CA
RGBrgb(139, 66, 202)
HSLhsl(272, 56%, 53%)
HSVhsv(272, 67%, 79%)
CMYKcmyk(31.2%, 67.3%, 0%, 20.8%)
CIE-LABlab(43.73, 55.28, -58.47)
CIE-LCHlch(43.73, 80.47, 313.39°)
OKLaboklab(53.92% 0.1168 -0.1659)
OKLCHoklch(53.92% 0.203 305.1)
XYZxyz(23.2540, 13.6498, 57.2753)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42CA #81CA42
analogous
#4742CA #8B42CA #CA42C5
triadic
#8B42CA #CA8B42 #42CA8B
tetradic
#8B42CA #CA4742 #81CA42 #42C5CA
square
#8B42CA #CA4742 #81CA42 #42C5CA
split-complementary
#8B42CA #C5CA42 #42CA47
monochromatic
#4C2072 #6C2DA2 #8B42CA #A872D7 #C6A2E5

Accessibility & contrast

On white

5.63
#8B42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8B42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B42CA
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B42CA#FFFFFF#000000##FFFFFF
##8B42CA1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#1467C7
Tritanopia (blue-blind)
#806081
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8b42ca;
/* rgb */ color: rgb(139, 66, 202);
/* oklch */ color: oklch(53.9% 0.203 305.1);
Tailwind
colors: {
  custom: {
    50: '#b27bdb',
    500: '#8b42ca',
    950: '#000000',
  },
}
SCSS
$custom: #8b42ca;
$custom-light: #b27bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42ca",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 272.206,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53916,
    "c": 0.20291,
    "h": 305.1
  },
  "luminance": 0.1365
}

Semantic roles & 50–950 ramp

primary
#8B42CA
secondary
#B2D196
accent
#DF488E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B42CA

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

Preview Lab → · Contrast checker → · Palette generator →

#8B42CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva