#371173#371173

#371173 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.151 H 292.7°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#371173
RGBrgb(55, 17, 115)
HSLhsl(263, 74%, 26%)
HSVhsv(263, 85%, 45%)
CMYKcmyk(52.2%, 85.2%, 0%, 54.9%)
CIE-LABlab(17.69, 40.47, -48.39)
CIE-LCHlch(17.69, 63.08, 309.91°)
OKLaboklab(30.91% 0.0581 -0.139)
OKLCHoklch(30.91% 0.151 292.7)
XYZxyz(4.8696, 2.4508, 16.4328)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371173 #4D7311
analogous
#111C73 #371173 #681173
triadic
#371173 #733711 #117337
tetradic
#371173 #73111C #4D7311 #117368
square
#371173 #73111C #4D7311 #117368
split-complementary
#371173 #736811 #1C7311
monochromatic
#0D041B #1D093E #371173 #5019A8 #6A21DE

Accessibility & contrast

On white

14.09
#371173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#371173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371173
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371173#FFFFFF#000000##FFFFFF
##3711731.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#232E43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #371173;
/* rgb */ color: rgb(55, 17, 115);
/* oklch */ color: oklch(30.9% 0.151 292.7);
Tailwind
colors: {
  custom: {
    50: '#76559c',
    500: '#371173',
    950: '#000000',
  },
}
SCSS
$custom: #371173;
$custom-light: #76559c;
$custom-dark: #000000;
JSON
{
  "hex": "#371173",
  "rgb": {
    "r": 55,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 263.265,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30909,
    "c": 0.15064,
    "h": 292.7
  },
  "luminance": 0.02451
}

Semantic roles & 50–950 ramp

primary
#371173
secondary
#7DAA36
accent
#F137A9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371173

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

Preview Lab → · Contrast checker → · Palette generator →

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