#8A37BB#8A37BB

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

Color values

HEX#8A37BB
RGBrgb(138, 55, 187)
HSLhsl(278, 55%, 47%)
HSVhsv(278, 71%, 73%)
CMYKcmyk(26.2%, 70.6%, 0%, 26.7%)
CIE-LABlab(40.77, 56.67, -54.51)
CIE-LCHlch(40.77, 78.63, 316.11°)
OKLaboklab(51.45% 0.1289 -0.1543)
OKLCHoklch(51.45% 0.201 309.9)
XYZxyz(20.8153, 11.7239, 48.1705)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37BB #68BB37
analogous
#4837BB #8A37BB #BB37AA
triadic
#8A37BB #BB8A37 #37BB8A
tetradic
#8A37BB #BB4837 #68BB37 #37AABB
square
#8A37BB #BB4837 #68BB37 #37AABB
split-complementary
#8A37BB #AABB37 #37BB48
monochromatic
#441B5C #67298C #8A37BB #A65FD0 #C08EDE

Accessibility & contrast

On white

6.28
#8A37BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A37BB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37BB#FFFFFF#000000##FFFFFF
##8A37BB1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#1E61B8
Tritanopia (blue-blind)
#835475
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a37bb;
/* rgb */ color: rgb(138, 55, 187);
/* oklch */ color: oklch(51.4% 0.201 309.9);
Tailwind
colors: {
  custom: {
    50: '#b075d0',
    500: '#8a37bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a37bb;
$custom-light: #b075d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37bb",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 187
  },
  "hsl": {
    "h": 277.727,
    "s": 54.545,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5145,
    "c": 0.20105,
    "h": 309.9
  },
  "luminance": 0.11724
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A37BB

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

Preview Lab → · Contrast checker → · Palette generator →

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