#8A42BC#8A42BC

#8A42BC is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.8% C 0.188 H 308.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A42BC
RGBrgb(138, 66, 188)
HSLhsl(275, 48%, 50%)
HSVhsv(275, 65%, 74%)
CMYKcmyk(26.6%, 64.9%, 0%, 26.3%)
CIE-LABlab(42.66, 51.83, -52.06)
CIE-LCHlch(42.66, 73.46, 314.88°)
OKLaboklab(52.82% 0.1167 -0.1471)
OKLCHoklch(52.82% 0.188 308.4)
XYZxyz(21.5047, 12.9309, 48.9302)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42BC #74BC42
analogous
#4D42BC #8A42BC #BC42B1
triadic
#8A42BC #BC8A42 #42BC8A
tetradic
#8A42BC #BC4D42 #74BC42 #42B1BC
square
#8A42BC #BC4D42 #74BC42 #42B1BC
split-complementary
#8A42BC #B1BC42 #42BC4D
monochromatic
#472261 #69328F #8A42BC #A66FCC #C29CDC

Accessibility & contrast

On white

5.86
#8A42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42BC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42BC#FFFFFF#000000##FFFFFF
##8A42BC1.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#2C66B9
Tritanopia (blue-blind)
#825B79
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a42bc;
/* rgb */ color: rgb(138, 66, 188);
/* oklch */ color: oklch(52.8% 0.188 308.4);
Tailwind
colors: {
  custom: {
    50: '#b07bd1',
    500: '#8a42bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a42bc;
$custom-light: #b07bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42bc",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 275.41,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52822,
    "c": 0.1878,
    "h": 308.4
  },
  "luminance": 0.12931
}

Semantic roles & 50–950 ramp

primary
#8A42BC
secondary
#A8C991
accent
#D85088
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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