#371252#371252

#371252 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.111 H 306.9°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#371252
RGBrgb(55, 18, 82)
HSLhsl(275, 64%, 20%)
HSVhsv(275, 78%, 32%)
CMYKcmyk(32.9%, 78%, 0%, 67.8%)
CIE-LABlab(14.70, 31.02, -31.40)
CIE-LCHlch(14.70, 44.14, 314.65°)
OKLaboklab(27.85% 0.0669 -0.0891)
OKLCHoklch(27.85% 0.111 306.9)
XYZxyz(3.3145, 1.8541, 8.1643)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371252 #2D5212
analogous
#171252 #371252 #52124D
triadic
#371252 #523712 #125237
tetradic
#371252 #521712 #2D5212 #124D52
square
#371252 #521712 #2D5212 #124D52
split-complementary
#371252 #4D5212 #125217
monochromatic
#110619 #150720 #371252 #591D84 #7A28B6

Accessibility & contrast

On white

15.32
#371252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#371252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371252
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371252#FFFFFF#000000##FFFFFF
##3712521.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371252;
/* rgb */ color: rgb(55, 18, 82);
/* oklch */ color: oklch(27.8% 0.111 306.9);
Tailwind
colors: {
  custom: {
    50: '#715483',
    500: '#371252',
    950: '#000000',
  },
}
SCSS
$custom: #371252;
$custom-light: #715483;
$custom-dark: #000000;
JSON
{
  "hex": "#371252",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 274.688,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27846,
    "c": 0.11148,
    "h": 306.9
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#371252
secondary
#598B35
accent
#E74187
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371252

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

Preview Lab → · Contrast checker → · Palette generator →

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