#371562#371562

#371562 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.127 H 298.3°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#371562
RGBrgb(55, 21, 98)
HSLhsl(266, 65%, 23%)
HSVhsv(266, 79%, 38%)
CMYKcmyk(43.9%, 78.6%, 0%, 61.6%)
CIE-LABlab(16.65, 33.87, -38.98)
CIE-LCHlch(16.65, 51.63, 310.99°)
OKLaboklab(29.67% 0.0601 -0.1114)
OKLCHoklch(29.67% 0.127 298.3)
XYZxyz(4.0478, 2.2303, 11.7701)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371562 #406215
analogous
#151962 #371562 #5D1562
triadic
#371562 #623715 #156237
tetradic
#371562 #621519 #406215 #15625D
square
#371562 #621519 #406215 #15625D
split-complementary
#371562 #625D15 #196215
monochromatic
#0E0519 #1B0A30 #371562 #532094 #702BC7

Accessibility & contrast

On white

14.52
#371562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#371562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371562
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371562#FFFFFF#000000##FFFFFF
##3715621.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002860
Tritanopia (blue-blind)
#2C293A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #371562;
/* rgb */ color: rgb(55, 21, 98);
/* oklch */ color: oklch(29.7% 0.127 298.3);
Tailwind
colors: {
  custom: {
    50: '#73568f',
    500: '#371562',
    950: '#000000',
  },
}
SCSS
$custom: #371562;
$custom-light: #73568f;
$custom-dark: #000000;
JSON
{
  "hex": "#371562",
  "rgb": {
    "r": 55,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 266.494,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29668,
    "c": 0.1266,
    "h": 298.3
  },
  "luminance": 0.0223
}

Semantic roles & 50–950 ramp

primary
#371562
secondary
#6F993A
accent
#E8409E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #371562

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

Preview Lab → · Contrast checker → · Palette generator →

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