#37158E#37158E

#37158E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.178 H 284.8°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#37158E
RGBrgb(55, 21, 142)
HSLhsl(257, 74%, 32%)
HSVhsv(257, 85%, 56%)
CMYKcmyk(61.3%, 85.2%, 0%, 44.3%)
CIE-LABlab(21.21, 46.40, -59.71)
CIE-LCHlch(21.21, 75.62, 307.85°)
OKLaboklab(34.21% 0.0454 -0.1721)
OKLCHoklch(34.21% 0.178 284.8)
XYZxyz(6.7247, 3.3011, 25.8688)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37158E #6C8E15
analogous
#152F8E #37158E #74158E
triadic
#37158E #8E3715 #158E37
tetradic
#37158E #8E152F #6C8E15 #158E74
square
#37158E #8E152F #6C8E15 #158E74
split-complementary
#37158E #8E7415 #2F8E15
monochromatic
#0E0523 #220D59 #37158E #4C1DC3 #6A3BE2

Accessibility & contrast

On white

12.65
#37158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#37158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37158E
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37158E#FFFFFF#000000##FFFFFF
##37158E1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #37158e;
/* rgb */ color: rgb(55, 21, 142);
/* oklch */ color: oklch(34.2% 0.178 284.8);
Tailwind
colors: {
  custom: {
    50: '#7a59b0',
    500: '#37158e',
    950: '#000000',
  },
}
SCSS
$custom: #37158e;
$custom-light: #7a59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#37158e",
  "rgb": {
    "r": 55,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 256.86,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3421,
    "c": 0.17799,
    "h": 284.8
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#37158E
secondary
#9CC23D
accent
#F137BD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #37158E

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

Preview Lab → · Contrast checker → · Palette generator →

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