#371152#371152

#371152 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.113 H 307.1°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#371152
RGBrgb(55, 17, 82)
HSLhsl(275, 66%, 19%)
HSVhsv(275, 79%, 32%)
CMYKcmyk(32.9%, 79.3%, 0%, 67.8%)
CIE-LABlab(14.53, 31.52, -31.69)
CIE-LCHlch(14.53, 44.69, 314.84°)
OKLaboklab(27.72% 0.0681 -0.09)
OKLCHoklch(27.72% 0.113 307.1)
XYZxyz(3.2987, 1.8224, 8.1590)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371152 #2C5211
analogous
#171152 #371152 #52114D
triadic
#371152 #523711 #115237
tetradic
#371152 #521711 #2C5211 #114D52
square
#371152 #521711 #2C5211 #114D52
split-complementary
#371152 #4D5211 #115217
monochromatic
#110519 #15061F #371152 #591C85 #7B26B7

Accessibility & contrast

On white

15.39
#371152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#371152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371152
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371152#FFFFFF#000000##FFFFFF
##3711521.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#322030
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #371152;
/* rgb */ color: rgb(55, 17, 82);
/* oklch */ color: oklch(27.7% 0.113 307.1);
Tailwind
colors: {
  custom: {
    50: '#715383',
    500: '#371152',
    950: '#000000',
  },
}
SCSS
$custom: #371152;
$custom-light: #715383;
$custom-dark: #000000;
JSON
{
  "hex": "#371152",
  "rgb": {
    "r": 55,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 275.077,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27722,
    "c": 0.11283,
    "h": 307.1
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#371152
secondary
#588B34
accent
#E93F86
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371152

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

Preview Lab → · Contrast checker → · Palette generator →

#371152 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva