#8A37C2#8A37C2

#8A37C2 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.0% C 0.208 H 308.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8A37C2
RGBrgb(138, 55, 194)
HSLhsl(276, 56%, 49%)
HSVhsv(276, 72%, 76%)
CMYKcmyk(28.9%, 71.6%, 0%, 23.9%)
CIE-LABlab(41.27, 58.21, -57.81)
CIE-LCHlch(41.27, 82.04, 315.20°)
OKLaboklab(51.96% 0.1279 -0.164)
OKLCHoklch(51.96% 0.208 308)
XYZxyz(21.5830, 12.0310, 52.2137)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37C2 #6FC237
analogous
#4537C2 #8A37C2 #C237B5
triadic
#8A37C2 #C28A37 #37C28A
tetradic
#8A37C2 #C24537 #6FC237 #37B5C2
square
#8A37C2 #C24537 #6FC237 #37B5C2
split-complementary
#8A37C2 #B5C237 #37C245
monochromatic
#461C63 #682992 #8A37C2 #A663D3 #C193E0

Accessibility & contrast

On white

6.17
#8A37C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8A37C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37C2
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37C2#FFFFFF#000000##FFFFFF
##8A37C21.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0B62BF
Tritanopia (blue-blind)
#815779
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a37c2;
/* rgb */ color: rgb(138, 55, 194);
/* oklch */ color: oklch(52.0% 0.208 308.0);
Tailwind
colors: {
  custom: {
    50: '#b175d5',
    500: '#8a37c2',
    950: '#000000',
  },
}
SCSS
$custom: #8a37c2;
$custom-light: #b175d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37c2",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 275.827,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51955,
    "c": 0.20798,
    "h": 308
  },
  "luminance": 0.12031
}

Semantic roles & 50–950 ramp

primary
#8A37C2
secondary
#A4CB89
accent
#DF4985
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A37C2

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

Preview Lab → · Contrast checker → · Palette generator →

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