#381081#381081

#381081 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.167 H 289.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#381081
RGBrgb(56, 16, 129)
HSLhsl(261, 78%, 28%)
HSVhsv(261, 88%, 51%)
CMYKcmyk(56.6%, 87.6%, 0%, 49.4%)
CIE-LABlab(19.21, 44.84, -54.85)
CIE-LCHlch(19.21, 70.84, 309.26°)
OKLaboklab(32.43% 0.0549 -0.1578)
OKLCHoklch(32.43% 0.167 289.2)
XYZxyz(5.7775, 2.7960, 20.9999)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381081 #598110
analogous
#102081 #381081 #701081
triadic
#381081 #813810 #108138
tetradic
#381081 #811020 #598110 #108170
square
#381081 #811020 #598110 #108170
split-complementary
#381081 #817010 #208110
monochromatic
#0C031B #20094B #381081 #5017B7 #6A27E4

Accessibility & contrast

On white

13.47
#381081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#381081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381081
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381081#FFFFFF#000000##FFFFFF
##3810811.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#19344B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381081;
/* rgb */ color: rgb(56, 16, 129);
/* oklch */ color: oklch(32.4% 0.167 289.2);
Tailwind
colors: {
  custom: {
    50: '#7956a7',
    500: '#381081',
    950: '#000000',
  },
}
SCSS
$custom: #381081;
$custom-light: #7956a7;
$custom-dark: #000000;
JSON
{
  "hex": "#381081",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 129
  },
  "hsl": {
    "h": 261.239,
    "s": 77.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32432,
    "c": 0.16709,
    "h": 289.2
  },
  "luminance": 0.02796
}

Semantic roles & 50–950 ramp

primary
#381081
secondary
#89B736
accent
#F433B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #381081

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

Preview Lab → · Contrast checker → · Palette generator →

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