#37157E#37157E

#37157E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.160 H 288.7°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#37157E
RGBrgb(55, 21, 126)
HSLhsl(259, 71%, 29%)
HSVhsv(259, 83%, 49%)
CMYKcmyk(56.3%, 83.3%, 0%, 50.6%)
CIE-LABlab(19.45, 41.85, -52.55)
CIE-LCHlch(19.45, 67.17, 308.53°)
OKLaboklab(32.48% 0.0513 -0.1512)
OKLCHoklch(32.48% 0.16 288.7)
XYZxyz(5.6085, 2.8546, 19.9901)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37157E #5C7E15
analogous
#15277E #37157E #6C157E
triadic
#37157E #7E3715 #157E37
tetradic
#37157E #7E1527 #5C7E15 #157E6C
square
#37157E #7E1527 #5C7E15 #157E6C
split-complementary
#37157E #7E6C15 #277E15
monochromatic
#0B041A #200C4A #37157E #4E1EB2 #6831DD

Accessibility & contrast

On white

13.37
#37157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#37157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37157E
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37157E#FFFFFF#000000##FFFFFF
##37157E1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#1A344A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #37157e;
/* rgb */ color: rgb(55, 21, 126);
/* oklch */ color: oklch(32.5% 0.160 288.7);
Tailwind
colors: {
  custom: {
    50: '#7758a4',
    500: '#37157e',
    950: '#000000',
  },
}
SCSS
$custom: #37157e;
$custom-light: #7758a4;
$custom-dark: #000000;
JSON
{
  "hex": "#37157e",
  "rgb": {
    "r": 55,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 259.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32475,
    "c": 0.15966,
    "h": 288.7
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#37157E
secondary
#8CB33C
accent
#EE3AB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #37157E

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

Preview Lab → · Contrast checker → · Palette generator →

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