#37217B#37217B

#37217B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.143 H 287.2°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#37217B
RGBrgb(55, 33, 123)
HSLhsl(255, 58%, 31%)
HSVhsv(255, 73%, 48%)
CMYKcmyk(55.3%, 73.2%, 0%, 51.8%)
CIE-LABlab(21.32, 34.78, -47.57)
CIE-LCHlch(21.32, 58.93, 306.17°)
OKLaboklab(33.7% 0.0425 -0.1367)
OKLCHoklch(33.7% 0.143 287.2)
XYZxyz(5.6935, 3.3297, 19.0777)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37217B #657B21
analogous
#21387B #37217B #64217B
triadic
#37217B #7B3721 #217B37
tetradic
#37217B #7B2138 #657B21 #217B64
square
#37217B #7B2138 #657B21 #217B64
split-complementary
#37217B #7B6421 #387B21
monochromatic
#0C071A #21144B #37217B #4D2EAB #6948CE

Accessibility & contrast

On white

12.61
#37217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#37217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #37217B
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37217B#FFFFFF#000000##FFFFFF
##37217B1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#1C394B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #37217b;
/* rgb */ color: rgb(55, 33, 123);
/* oklch */ color: oklch(33.7% 0.143 287.2);
Tailwind
colors: {
  custom: {
    50: '#765ea2',
    500: '#37217b',
    950: '#000000',
  },
}
SCSS
$custom: #37217b;
$custom-light: #765ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#37217b",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 254.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33695,
    "c": 0.14317,
    "h": 287.2
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#37217B
secondary
#95AE4A
accent
#E147BB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #37217B

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

Preview Lab → · Contrast checker → · Palette generator →

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