#381982#381982

#381982 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.161 H 287.7°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#381982
RGBrgb(56, 25, 130)
HSLhsl(258, 68%, 30%)
HSVhsv(258, 81%, 51%)
CMYKcmyk(56.9%, 80.8%, 0%, 49%)
CIE-LABlab(20.62, 41.29, -53.15)
CIE-LCHlch(20.62, 67.30, 307.85°)
OKLaboklab(33.44% 0.0488 -0.153)
OKLCHoklch(33.44% 0.161 287.7)
XYZxyz(6.0066, 3.1474, 21.4058)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381982 #638219
analogous
#192F82 #381982 #6C1982
triadic
#381982 #823819 #198238
tetradic
#381982 #82192F #638219 #19826C
square
#381982 #82192F #638219 #19826C
split-complementary
#381982 #826C19 #2F8219
monochromatic
#0C051B #220F4F #381982 #4E23B5 #6A3CD9

Accessibility & contrast

On white

12.89
#381982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381982
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381982#FFFFFF#000000##FFFFFF
##3819821.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#18384D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381982;
/* rgb */ color: rgb(56, 25, 130);
/* oklch */ color: oklch(33.4% 0.161 287.7);
Tailwind
colors: {
  custom: {
    50: '#785aa7',
    500: '#381982',
    950: '#000000',
  },
}
SCSS
$custom: #381982;
$custom-light: #785aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#381982",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 257.714,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33442,
    "c": 0.16056,
    "h": 287.7
  },
  "luminance": 0.03148
}

Semantic roles & 50–950 ramp

primary
#381982
secondary
#93B641
accent
#EB3DB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381982

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

Preview Lab → · Contrast checker → · Palette generator →

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