#37217D#37217D

#37217D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.146 H 286.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#37217D
RGBrgb(55, 33, 125)
HSLhsl(254, 58%, 31%)
HSVhsv(254, 74%, 49%)
CMYKcmyk(56%, 73.6%, 0%, 51%)
CIE-LABlab(21.51, 35.41, -48.54)
CIE-LCHlch(21.51, 60.08, 306.11°)
OKLaboklab(33.89% 0.042 -0.1395)
OKLCHoklch(33.89% 0.146 286.8)
XYZxyz(5.8200, 3.3803, 19.7439)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37217D #677D21
analogous
#21397D #37217D #65217D
triadic
#37217D #7D3721 #217D37
tetradic
#37217D #7D2139 #677D21 #217D65
square
#37217D #7D2139 #677D21 #217D65
split-complementary
#37217D #7D6521 #397D21
monochromatic
#0C071C #22144D #37217D #4C2EAD #6949CF

Accessibility & contrast

On white

12.53
#37217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#37217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37217D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37217D#FFFFFF#000000##FFFFFF
##37217D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#1A394C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #37217d;
/* rgb */ color: rgb(55, 33, 125);
/* oklch */ color: oklch(33.9% 0.146 286.8);
Tailwind
colors: {
  custom: {
    50: '#765ea4',
    500: '#37217d',
    950: '#000000',
  },
}
SCSS
$custom: #37217d;
$custom-light: #765ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#37217d",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 254.348,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33886,
    "c": 0.14574,
    "h": 286.8
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#37217D
secondary
#97B04A
accent
#E146BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #37217D

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

Preview Lab → · Contrast checker → · Palette generator →

#37217D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva