#8A37BA#8A37BA

#8A37BA is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.4% C 0.200 H 310.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8A37BA
RGBrgb(138, 55, 186)
HSLhsl(278, 54%, 47%)
HSVhsv(278, 70%, 73%)
CMYKcmyk(25.8%, 70.4%, 0%, 27.1%)
CIE-LABlab(40.70, 56.45, -54.03)
CIE-LCHlch(40.70, 78.14, 316.25°)
OKLaboklab(51.38% 0.129 -0.1529)
OKLCHoklch(51.38% 0.2 310.2)
XYZxyz(20.7086, 11.6813, 47.6087)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37BA #67BA37
analogous
#4837BA #8A37BA #BA37A9
triadic
#8A37BA #BA8A37 #37BA8A
tetradic
#8A37BA #BA4837 #67BA37 #37A9BA
square
#8A37BA #BA4837 #67BA37 #37A9BA
split-complementary
#8A37BA #A9BA37 #37BA48
monochromatic
#441B5C #67298B #8A37BA #A65FD0 #C08EDE

Accessibility & contrast

On white

6.29
#8A37BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8A37BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37BA
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37BA#FFFFFF#000000##FFFFFF
##8A37BA1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#2061B7
Tritanopia (blue-blind)
#835475
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a37ba;
/* rgb */ color: rgb(138, 55, 186);
/* oklch */ color: oklch(51.4% 0.200 310.2);
Tailwind
colors: {
  custom: {
    50: '#b075cf',
    500: '#8a37ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a37ba;
$custom-light: #b075cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37ba",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 278.015,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51379,
    "c": 0.20006,
    "h": 310.2
  },
  "luminance": 0.11681
}

Semantic roles & 50–950 ramp

primary
#8A37BA
secondary
#9DC885
accent
#DE4A80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A37BA

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

Preview Lab → · Contrast checker → · Palette generator →

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