#371148#371148

#371148 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.9% C 0.101 H 313.4°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#371148
RGBrgb(55, 17, 72)
HSLhsl(281, 62%, 17%)
HSVhsv(281, 76%, 28%)
CMYKcmyk(23.6%, 76.4%, 0%, 71.8%)
CIE-LABlab(13.72, 28.97, -26.12)
CIE-LCHlch(13.72, 39.00, 317.96°)
OKLaboklab(26.89% 0.0696 -0.0736)
OKLCHoklch(26.89% 0.101 313.4)
XYZxyz(2.9455, 1.6811, 6.2990)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371148 #224811
analogous
#1C1148 #371148 #48113D
triadic
#371148 #483711 #114837
tetradic
#371148 #481C11 #224811 #113D48
square
#371148 #481C11 #224811 #113D48
split-complementary
#371148 #3D4811 #11481C
monochromatic
#130619 #130619 #371148 #5D1D7A #8328AB

Accessibility & contrast

On white

15.72
#371148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#371148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371148
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371148#FFFFFF#000000##FFFFFF
##3711481.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#0D2447
Tritanopia (blue-blind)
#351C2B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #371148;
/* rgb */ color: rgb(55, 17, 72);
/* oklch */ color: oklch(26.9% 0.101 313.4);
Tailwind
colors: {
  custom: {
    50: '#70537b',
    500: '#371148',
    950: '#000000',
  },
}
SCSS
$custom: #371148;
$custom-light: #70537b;
$custom-dark: #000000;
JSON
{
  "hex": "#371148",
  "rgb": {
    "r": 55,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 281.455,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26888,
    "c": 0.10131,
    "h": 313.4
  },
  "luminance": 0.01681
}

Semantic roles & 50–950 ramp

primary
#371148
secondary
#4B8233
accent
#E54375
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #371148

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

Preview Lab → · Contrast checker → · Palette generator →

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