#8A42CA#8A42CA

#8A42CA is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.8% C 0.203 H 304.7°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8A42CA
RGBrgb(138, 66, 202)
HSLhsl(272, 56%, 53%)
HSVhsv(272, 67%, 79%)
CMYKcmyk(31.7%, 67.3%, 0%, 20.8%)
CIE-LABlab(43.60, 55.07, -58.68)
CIE-LCHlch(43.60, 80.47, 313.18°)
OKLaboklab(53.8% 0.1154 -0.1666)
OKLCHoklch(53.8% 0.203 304.7)
XYZxyz(23.0877, 13.5641, 57.2675)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42CA #82CA42
analogous
#4642CA #8A42CA #CA42C6
triadic
#8A42CA #CA8A42 #42CA8A
tetradic
#8A42CA #CA4642 #82CA42 #42C6CA
square
#8A42CA #CA4642 #82CA42 #42C6CA
split-complementary
#8A42CA #C6CA42 #42CA46
monochromatic
#4B2072 #6B2DA2 #8A42CA #A872D7 #C5A2E5

Accessibility & contrast

On white

5.66
#8A42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8A42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42CA
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42CA#FFFFFF#000000##FFFFFF
##8A42CA1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#1167C7
Tritanopia (blue-blind)
#7E6081
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a42ca;
/* rgb */ color: rgb(138, 66, 202);
/* oklch */ color: oklch(53.8% 0.203 304.7);
Tailwind
colors: {
  custom: {
    50: '#b17bdb',
    500: '#8a42ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a42ca;
$custom-light: #b17bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42ca",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 271.765,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53799,
    "c": 0.20268,
    "h": 304.7
  },
  "luminance": 0.13564
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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