#8A37D1#8A37D1

#8A37D1 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.1% C 0.223 H 304.2°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8A37D1
RGBrgb(138, 55, 209)
HSLhsl(272, 63%, 52%)
HSVhsv(272, 74%, 82%)
CMYKcmyk(34%, 73.7%, 0%, 18%)
CIE-LABlab(42.37, 61.58, -64.72)
CIE-LCHlch(42.37, 89.34, 313.57°)
OKLaboklab(53.08% 0.1253 -0.1843)
OKLCHoklch(53.08% 0.223 304.2)
XYZxyz(23.3534, 12.7392, 61.5378)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37D1 #7ED137
analogous
#3D37D1 #8A37D1 #D137CB
triadic
#8A37D1 #D18A37 #37D18A
tetradic
#8A37D1 #D13D37 #7ED137 #37CBD1
square
#8A37D1 #D13D37 #7ED137 #37CBD1
split-complementary
#8A37D1 #CBD137 #37D13D
monochromatic
#4A1A73 #6A26A5 #8A37D1 #A769DC #C49BE8

Accessibility & contrast

On white

5.92
#8A37D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8A37D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37D1
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37D1#FFFFFF#000000##FFFFFF
##8A37D11.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D5
Deuteranopia (green-blind)
#0064CE
Tritanopia (blue-blind)
#7C5D82
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a37d1;
/* rgb */ color: rgb(138, 55, 209);
/* oklch */ color: oklch(53.1% 0.223 304.2);
Tailwind
colors: {
  custom: {
    50: '#b276e0',
    500: '#8a37d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a37d1;
$custom-light: #b276e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37d1",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 209
  },
  "hsl": {
    "h": 272.338,
    "s": 62.602,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53081,
    "c": 0.22283,
    "h": 304.2
  },
  "luminance": 0.12739
}

Semantic roles & 50–950 ramp

primary
#8A37D1
secondary
#AFD490
accent
#E6428E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8A37D1

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

Preview Lab → · Contrast checker → · Palette generator →

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