#8A37DA#8A37DA

#8A37DA is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.8% C 0.232 H 302.2°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8A37DA
RGBrgb(138, 55, 218)
HSLhsl(271, 69%, 54%)
HSVhsv(271, 75%, 85%)
CMYKcmyk(36.7%, 74.8%, 0%, 14.5%)
CIE-LABlab(43.06, 63.64, -68.77)
CIE-LCHlch(43.06, 93.70, 312.78°)
OKLaboklab(53.78% 0.1233 -0.1962)
OKLCHoklch(53.78% 0.232 302.2)
XYZxyz(24.4993, 13.1975, 67.5727)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37DA #87DA37
analogous
#3837DA #8A37DA #DA37D8
triadic
#8A37DA #DA8A37 #37DA8A
tetradic
#8A37DA #DA3837 #87DA37 #37D8DA
square
#8A37DA #DA3837 #87DA37 #37D8DA
split-complementary
#8A37DA #D8DA37 #37DA38
monochromatic
#4C187F #6B21B3 #8A37DA #A86BE4 #C69EED

Accessibility & contrast

On white

5.77
#8A37DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8A37DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37DA
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37DA#FFFFFF#000000##FFFFFF
##8A37DA1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DF
Deuteranopia (green-blind)
#0065D7
Tritanopia (blue-blind)
#796187
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a37da;
/* rgb */ color: rgb(138, 55, 218);
/* oklch */ color: oklch(53.8% 0.232 302.2);
Tailwind
colors: {
  custom: {
    50: '#b376e7',
    500: '#8a37da',
    950: '#000000',
  },
}
SCSS
$custom: #8a37da;
$custom-light: #b376e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37da",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 218
  },
  "hsl": {
    "h": 270.552,
    "s": 68.776,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53784,
    "c": 0.23173,
    "h": 302.2
  },
  "luminance": 0.13198
}

Semantic roles & 50–950 ramp

primary
#8A37DA
secondary
#B6D993
accent
#EC3C92
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A37DA

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

Preview Lab → · Contrast checker → · Palette generator →

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