#381173#381173

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

Color values

HEX#381173
RGBrgb(56, 17, 115)
HSLhsl(264, 74%, 26%)
HSVhsv(264, 85%, 45%)
CMYKcmyk(51.3%, 85.2%, 0%, 54.9%)
CIE-LABlab(17.82, 40.61, -48.17)
CIE-LCHlch(17.82, 63.00, 310.13°)
OKLaboklab(31.03% 0.0598 -0.1383)
OKLCHoklch(31.03% 0.151 293.4)
XYZxyz(4.9250, 2.4793, 16.4354)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381173 #4C7311
analogous
#111B73 #381173 #691173
triadic
#381173 #733811 #117338
tetradic
#381173 #73111B #4C7311 #117369
square
#381173 #73111B #4C7311 #117369
split-complementary
#381173 #736911 #1B7311
monochromatic
#0D041B #1E093E #381173 #5219A8 #6C21DE

Accessibility & contrast

On white

14.04
#381173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381173
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381173#FFFFFF#000000##FFFFFF
##3811731.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#252E43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381173;
/* rgb */ color: rgb(56, 17, 115);
/* oklch */ color: oklch(31.0% 0.151 293.4);
Tailwind
colors: {
  custom: {
    50: '#76559c',
    500: '#381173',
    950: '#000000',
  },
}
SCSS
$custom: #381173;
$custom-light: #76559c;
$custom-dark: #000000;
JSON
{
  "hex": "#381173",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 263.878,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31028,
    "c": 0.15067,
    "h": 293.4
  },
  "luminance": 0.02479
}

Semantic roles & 50–950 ramp

primary
#381173
secondary
#7CAA36
accent
#F137A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381173

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

Preview Lab → · Contrast checker → · Palette generator →

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