#8A37B8#8A37B8

#8A37B8 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.2% C 0.198 H 310.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#8A37B8
RGBrgb(138, 55, 184)
HSLhsl(279, 54%, 47%)
HSVhsv(279, 70%, 72%)
CMYKcmyk(25%, 70.1%, 0%, 27.8%)
CIE-LABlab(40.57, 56.01, -53.08)
CIE-LCHlch(40.57, 77.17, 316.54°)
OKLaboklab(51.24% 0.1293 -0.1501)
OKLCHoklch(51.24% 0.198 310.7)
XYZxyz(20.4975, 11.5968, 46.4967)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37B8 #65B837
analogous
#4A37B8 #8A37B8 #B837A6
triadic
#8A37B8 #B88A37 #37B88A
tetradic
#8A37B8 #B84A37 #65B837 #37A6B8
square
#8A37B8 #B84A37 #65B837 #37A6B8
split-complementary
#8A37B8 #A6B837 #37B84A
monochromatic
#431B5A #672989 #8A37B8 #A65DCF #C08DDD

Accessibility & contrast

On white

6.33
#8A37B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A37B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37B8
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37B8#FFFFFF#000000##FFFFFF
##8A37B81.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#2361B5
Tritanopia (blue-blind)
#845374
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a37b8;
/* rgb */ color: rgb(138, 55, 184);
/* oklch */ color: oklch(51.2% 0.198 310.7);
Tailwind
colors: {
  custom: {
    50: '#b075ce',
    500: '#8a37b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a37b8;
$custom-light: #b075ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37b8",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 278.605,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51238,
    "c": 0.19808,
    "h": 310.7
  },
  "luminance": 0.11596
}

Semantic roles & 50–950 ramp

primary
#8A37B8
secondary
#9CC784
accent
#DD4A7F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A37B8

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

Preview Lab → · Contrast checker → · Palette generator →

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