#8B42DD#8B42DD

#8B42DD is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.3% C 0.223 H 300.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8B42DD
RGBrgb(139, 66, 221)
HSLhsl(268, 70%, 56%)
HSVhsv(268, 70%, 87%)
CMYKcmyk(37.1%, 70.1%, 0%, 13.3%)
CIE-LABlab(45.09, 59.77, -67.17)
CIE-LCHlch(45.09, 89.91, 311.66°)
OKLaboklab(55.32% 0.114 -0.1915)
OKLCHoklch(55.32% 0.223 300.8)
XYZxyz(25.6436, 14.6057, 69.8608)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42DD #94DD42
analogous
#4247DD #8B42DD #D942DD
triadic
#8B42DD #DD8B42 #42DD8B
tetradic
#8B42DD #DD4247 #94DD42 #42DDD9
square
#8B42DD #DD4247 #94DD42 #42DDD9
split-complementary
#8B42DD #DDD942 #47DD42
monochromatic
#4F198C #6C22BF #8B42DD #AB76E6 #CBAAF0

Accessibility & contrast

On white

5.36
#8B42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#8B42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B42DD
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B42DD#FFFFFF#000000##FFFFFF
##8B42DD1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE2
Deuteranopia (green-blind)
#006ADA
Tritanopia (blue-blind)
#79688B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8b42dd;
/* rgb */ color: rgb(139, 66, 221);
/* oklch */ color: oklch(55.3% 0.223 300.8);
Tailwind
colors: {
  custom: {
    50: '#b37ce9',
    500: '#8b42dd',
    950: '#000000',
  },
}
SCSS
$custom: #8b42dd;
$custom-light: #b37ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42dd",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 268.258,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55317,
    "c": 0.22291,
    "h": 300.8
  },
  "luminance": 0.14606
}

Semantic roles & 50–950 ramp

primary
#8B42DD
secondary
#BFDD9D
accent
#EC3B99
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8B42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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