#8A37BC#8A37BC

#8A37BC is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.202 H 309.6°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8A37BC
RGBrgb(138, 55, 188)
HSLhsl(277, 55%, 48%)
HSVhsv(277, 71%, 74%)
CMYKcmyk(26.6%, 70.7%, 0%, 26.3%)
CIE-LABlab(40.84, 56.89, -54.98)
CIE-LCHlch(40.84, 79.12, 315.97°)
OKLaboklab(51.52% 0.1288 -0.1557)
OKLCHoklch(51.52% 0.202 309.6)
XYZxyz(20.9227, 11.7669, 48.7362)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37BC #69BC37
analogous
#4837BC #8A37BC #BC37AB
triadic
#8A37BC #BC8A37 #37BC8A
tetradic
#8A37BC #BC4837 #69BC37 #37ABBC
square
#8A37BC #BC4837 #69BC37 #37ABBC
split-complementary
#8A37BC #ABBC37 #37BC48
monochromatic
#441B5D #67298D #8A37BC #A660D0 #C18FDE

Accessibility & contrast

On white

6.26
#8A37BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8A37BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37BC
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37BC#FFFFFF#000000##FFFFFF
##8A37BC1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#1C61B9
Tritanopia (blue-blind)
#835576
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a37bc;
/* rgb */ color: rgb(138, 55, 188);
/* oklch */ color: oklch(51.5% 0.202 309.6);
Tailwind
colors: {
  custom: {
    50: '#b175d1',
    500: '#8a37bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a37bc;
$custom-light: #b175d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37bc",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 277.444,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51521,
    "c": 0.20203,
    "h": 309.6
  },
  "luminance": 0.11766
}

Semantic roles & 50–950 ramp

primary
#8A37BC
secondary
#9FC986
accent
#DE4A81
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A37BC

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

Preview Lab → · Contrast checker → · Palette generator →

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