#8A42B5#8A42B5

#8A42B5 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.180 H 310.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8A42B5
RGBrgb(138, 66, 181)
HSLhsl(278, 47%, 48%)
HSVhsv(278, 64%, 71%)
CMYKcmyk(23.8%, 63.5%, 0%, 29%)
CIE-LABlab(42.21, 50.25, -48.67)
CIE-LCHlch(42.21, 69.96, 315.92°)
OKLaboklab(52.36% 0.1171 -0.1372)
OKLCHoklch(52.36% 0.18 310.5)
XYZxyz(20.7684, 12.6363, 45.0521)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42B5 #6DB542
analogous
#5042B5 #8A42B5 #B542A6
triadic
#8A42B5 #B58A42 #42B58A
tetradic
#8A42B5 #B55042 #6DB542 #42A6B5
square
#8A42B5 #B55042 #6DB542 #42A6B5
split-complementary
#8A42B5 #A6B542 #42B550
monochromatic
#46215B #683288 #8A42B5 #A66BC9 #C198D9

Accessibility & contrast

On white

5.95
#8A42B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A42B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42B5
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42B5#FFFFFF#000000##FFFFFF
##8A42B51.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0560B9
Deuteranopia (green-blind)
#3465B2
Tritanopia (blue-blind)
#845975
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a42b5;
/* rgb */ color: rgb(138, 66, 181);
/* oklch */ color: oklch(52.4% 0.180 310.5);
Tailwind
colors: {
  custom: {
    50: '#b07bcc',
    500: '#8a42b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a42b5;
$custom-light: #b07bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42b5",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 277.565,
    "s": 46.559,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52355,
    "c": 0.18036,
    "h": 310.5
  },
  "luminance": 0.12636
}

Semantic roles & 50–950 ramp

primary
#8A42B5
secondary
#A2C58E
accent
#D65283
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A42B5

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

Preview Lab → · Contrast checker → · Palette generator →

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