#37157F#37157F

#37157F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.161 H 288.5°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#37157F
RGBrgb(55, 21, 127)
HSLhsl(259, 72%, 29%)
HSVhsv(259, 83%, 50%)
CMYKcmyk(56.7%, 83.5%, 0%, 50.2%)
CIE-LABlab(19.56, 42.13, -53.01)
CIE-LCHlch(19.56, 67.71, 308.48°)
OKLaboklab(32.58% 0.0509 -0.1525)
OKLCHoklch(32.58% 0.161 288.5)
XYZxyz(5.6733, 2.8806, 20.3316)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37157F #5D7F15
analogous
#15287F #37157F #6C157F
triadic
#37157F #7F3715 #157F37
tetradic
#37157F #7F1528 #5D7F15 #157F6C
square
#37157F #7F1528 #5D7F15 #157F6C
split-complementary
#37157F #7F6C15 #287F15
monochromatic
#0B041A #200C4A #37157F #4E1EB4 #6831DD

Accessibility & contrast

On white

13.32
#37157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#37157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37157F
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37157F#FFFFFF#000000##FFFFFF
##37157F1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#19354B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #37157f;
/* rgb */ color: rgb(55, 21, 127);
/* oklch */ color: oklch(32.6% 0.161 288.5);
Tailwind
colors: {
  custom: {
    50: '#7758a5',
    500: '#37157f',
    950: '#000000',
  },
}
SCSS
$custom: #37157f;
$custom-light: #7758a5;
$custom-dark: #000000;
JSON
{
  "hex": "#37157f",
  "rgb": {
    "r": 55,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 259.245,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32581,
    "c": 0.16081,
    "h": 288.5
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#37157F
secondary
#8DB43C
accent
#EE39B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #37157F

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

Preview Lab → · Contrast checker → · Palette generator →

#37157F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva