#8A42D8#8A42D8

#8A42D8 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.8% C 0.217 H 301.5°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8A42D8
RGBrgb(138, 66, 216)
HSLhsl(269, 66%, 55%)
HSVhsv(269, 69%, 85%)
CMYKcmyk(36.1%, 69.4%, 0%, 15.3%)
CIE-LABlab(44.60, 58.39, -65.12)
CIE-LCHlch(44.60, 87.46, 311.88°)
OKLaboklab(54.83% 0.1135 -0.1855)
OKLCHoklch(54.83% 0.217 301.5)
XYZxyz(24.8211, 14.2574, 66.3967)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42D8 #90D842
analogous
#4245D8 #8A42D8 #D542D8
triadic
#8A42D8 #D88A42 #42D88A
tetradic
#8A42D8 #D84245 #90D842 #42D8D5
square
#8A42D8 #D84245 #90D842 #42D8D5
split-complementary
#8A42D8 #D8D542 #45D842
monochromatic
#4E1B84 #6B26B7 #8A42D8 #A975E2 #C9A7ED

Accessibility & contrast

On white

5.45
#8A42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8A42D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42D8
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42D8#FFFFFF#000000##FFFFFF
##8A42D81.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DC
Deuteranopia (green-blind)
#0069D5
Tritanopia (blue-blind)
#796688
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a42d8;
/* rgb */ color: rgb(138, 66, 216);
/* oklch */ color: oklch(54.8% 0.217 301.5);
Tailwind
colors: {
  custom: {
    50: '#b27ce5',
    500: '#8a42d8',
    950: '#000000',
  },
}
SCSS
$custom: #8a42d8;
$custom-light: #b27ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42d8",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 268.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54827,
    "c": 0.21749,
    "h": 301.5
  },
  "luminance": 0.14258
}

Semantic roles & 50–950 ramp

primary
#8A42D8
secondary
#BCDA9C
accent
#E93F97
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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