#8A37C7#8A37C7

#8A37C7 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.3% C 0.213 H 306.7°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A37C7
RGBrgb(138, 55, 199)
HSLhsl(275, 57%, 50%)
HSVhsv(275, 72%, 78%)
CMYKcmyk(30.7%, 72.4%, 0%, 22%)
CIE-LABlab(41.63, 59.32, -60.14)
CIE-LCHlch(41.63, 84.48, 314.61°)
OKLaboklab(52.32% 0.1271 -0.1708)
OKLCHoklch(52.32% 0.213 306.7)
XYZxyz(22.1540, 12.2594, 55.2210)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37C7 #74C737
analogous
#4237C7 #8A37C7 #C737BC
triadic
#8A37C7 #C78A37 #37C78A
tetradic
#8A37C7 #C74237 #74C737 #37BCC7
square
#8A37C7 #C74237 #74C737 #37BCC7
split-complementary
#8A37C7 #BCC737 #37C742
monochromatic
#471C67 #692A97 #8A37C7 #A666D5 #C296E2

Accessibility & contrast

On white

6.08
#8A37C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A37C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37C7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37C7#FFFFFF#000000##FFFFFF
##8A37C71.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CB
Deuteranopia (green-blind)
#0063C4
Tritanopia (blue-blind)
#80597C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a37c7;
/* rgb */ color: rgb(138, 55, 199);
/* oklch */ color: oklch(52.3% 0.213 306.7);
Tailwind
colors: {
  custom: {
    50: '#b175d9',
    500: '#8a37c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a37c7;
$custom-light: #b175d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37c7",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 199
  },
  "hsl": {
    "h": 274.583,
    "s": 56.693,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52324,
    "c": 0.21293,
    "h": 306.7
  },
  "luminance": 0.12259
}

Semantic roles & 50–950 ramp

primary
#8A37C7
secondary
#A8CD8C
accent
#E04888
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A37C7

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

Preview Lab → · Contrast checker → · Palette generator →

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