#8A42C9#8A42C9

#8A42C9 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.7% C 0.202 H 305.0°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8A42C9
RGBrgb(138, 66, 201)
HSLhsl(272, 56%, 52%)
HSVhsv(272, 67%, 79%)
CMYKcmyk(31.3%, 67.2%, 0%, 21.2%)
CIE-LABlab(43.53, 54.84, -58.21)
CIE-LCHlch(43.53, 79.97, 313.29°)
OKLaboklab(53.73% 0.1155 -0.1652)
OKLCHoklch(53.73% 0.202 305)
XYZxyz(22.9697, 13.5169, 56.6459)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42C9 #81C942
analogous
#4642C9 #8A42C9 #C942C5
triadic
#8A42C9 #C98A42 #42C98A
tetradic
#8A42C9 #C94642 #81C942 #42C5C9
square
#8A42C9 #C94642 #81C942 #42C5C9
split-complementary
#8A42C9 #C5C942 #42C946
monochromatic
#4B2070 #6B2EA0 #8A42C9 #A772D7 #C5A1E4

Accessibility & contrast

On white

5.67
#8A42C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8A42C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42C9
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42C9#FFFFFF#000000##FFFFFF
##8A42C91.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CD
Deuteranopia (green-blind)
#1467C6
Tritanopia (blue-blind)
#7F6080
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a42c9;
/* rgb */ color: rgb(138, 66, 201);
/* oklch */ color: oklch(53.7% 0.202 305.0);
Tailwind
colors: {
  custom: {
    50: '#b17bda',
    500: '#8a42c9',
    950: '#000000',
  },
}
SCSS
$custom: #8a42c9;
$custom-light: #b17bda;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42c9",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 201
  },
  "hsl": {
    "h": 272,
    "s": 55.556,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53727,
    "c": 0.20161,
    "h": 305
  },
  "luminance": 0.13517
}

Semantic roles & 50–950 ramp

primary
#8A42C9
secondary
#B1D196
accent
#DF498F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A42C9

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

Preview Lab → · Contrast checker → · Palette generator →

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