#8A42C8#8A42C8

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

Color values

HEX#8A42C8
RGBrgb(138, 66, 200)
HSLhsl(272, 55%, 52%)
HSVhsv(272, 67%, 78%)
CMYKcmyk(31%, 67%, 0%, 21.6%)
CIE-LABlab(43.46, 54.60, -57.75)
CIE-LCHlch(43.46, 79.47, 313.40°)
OKLaboklab(53.66% 0.1157 -0.1638)
OKLCHoklch(53.66% 0.201 305.2)
XYZxyz(22.8525, 13.4700, 56.0284)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42C8 #80C842
analogous
#4742C8 #8A42C8 #C842C3
triadic
#8A42C8 #C88A42 #42C88A
tetradic
#8A42C8 #C84742 #80C842 #42C3C8
square
#8A42C8 #C84742 #80C842 #42C3C8
split-complementary
#8A42C8 #C3C842 #42C847
monochromatic
#4B206F #6B2E9F #8A42C8 #A771D6 #C5A1E4

Accessibility & contrast

On white

5.68
#8A42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8A42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42C8
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42C8#FFFFFF#000000##FFFFFF
##8A42C81.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#1767C5
Tritanopia (blue-blind)
#7F6080
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a42c8;
/* rgb */ color: rgb(138, 66, 200);
/* oklch */ color: oklch(53.7% 0.201 305.2);
Tailwind
colors: {
  custom: {
    50: '#b17bd9',
    500: '#8a42c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a42c8;
$custom-light: #b17bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42c8",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 272.239,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53656,
    "c": 0.20055,
    "h": 305.2
  },
  "luminance": 0.1347
}

Semantic roles & 50–950 ramp

primary
#8A42C8
secondary
#B1D096
accent
#DE4A8E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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