#8A41D2#8A41D2

#8A41D2 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.3% C 0.212 H 302.9°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A41D2
RGBrgb(138, 65, 210)
HSLhsl(270, 62%, 54%)
HSVhsv(270, 69%, 82%)
CMYKcmyk(34.3%, 69%, 0%, 17.6%)
CIE-LABlab(44.00, 57.42, -62.65)
CIE-LCHlch(44.00, 84.99, 312.51°)
OKLaboklab(54.26% 0.1154 -0.1783)
OKLCHoklch(54.26% 0.212 302.9)
XYZxyz(24.0017, 13.8370, 62.3666)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41D2 #89D241
analogous
#4241D2 #8A41D2 #D241D2
triadic
#8A41D2 #D28A41 #41D28A
tetradic
#8A41D2 #D24241 #89D241 #41D2D2
square
#8A41D2 #D24241 #89D241 #41D2D2
split-complementary
#8A41D2 #D2D241 #41D242
monochromatic
#4D1D7B #6B29AD #8A41D2 #A872DE #C7A4E9

Accessibility & contrast

On white

5.57
#8A41D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8A41D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A41D2
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41D2#FFFFFF#000000##FFFFFF
##8A41D21.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#7C6385
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a41d2;
/* rgb */ color: rgb(138, 65, 210);
/* oklch */ color: oklch(54.3% 0.212 302.9);
Tailwind
colors: {
  custom: {
    50: '#b27be1',
    500: '#8a41d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a41d2;
$custom-light: #b27be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41d2",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 210
  },
  "hsl": {
    "h": 270.207,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54261,
    "c": 0.21237,
    "h": 302.9
  },
  "luminance": 0.13837
}

Semantic roles & 50–950 ramp

primary
#8A41D2
secondary
#B7D698
accent
#E54393
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A41D2

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

Preview Lab → · Contrast checker → · Palette generator →

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