#381167#381167

#381167 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.137 H 297.8°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#381167
RGBrgb(56, 17, 103)
HSLhsl(267, 72%, 24%)
HSVhsv(267, 83%, 40%)
CMYKcmyk(45.6%, 83.5%, 0%, 59.6%)
CIE-LABlab(16.61, 37.33, -42.35)
CIE-LCHlch(16.61, 56.45, 311.39°)
OKLaboklab(29.81% 0.064 -0.1212)
OKLCHoklch(29.81% 0.137 297.8)
XYZxyz(4.2789, 2.2208, 13.0326)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381167 #406711
analogous
#111567 #381167 #631167
triadic
#381167 #673811 #116738
tetradic
#381167 #671115 #406711 #116763
square
#381167 #671115 #406711 #116763
split-complementary
#381167 #676311 #156711
monochromatic
#0E041A #1B0832 #381167 #551A9C #7122D0

Accessibility & contrast

On white

14.54
#381167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#381167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381167
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381167#FFFFFF#000000##FFFFFF
##3811671.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#2C293C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381167;
/* rgb */ color: rgb(56, 17, 103);
/* oklch */ color: oklch(29.8% 0.137 297.8);
Tailwind
colors: {
  custom: {
    50: '#745493',
    500: '#381167',
    950: '#000000',
  },
}
SCSS
$custom: #381167;
$custom-light: #745493;
$custom-dark: #000000;
JSON
{
  "hex": "#381167",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 267.209,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29813,
    "c": 0.1371,
    "h": 297.8
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#381167
secondary
#6F9F35
accent
#EE399C
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381167

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

Preview Lab → · Contrast checker → · Palette generator →

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