#381996#381996

#381996 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.184 H 283.2°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#381996
RGBrgb(56, 25, 150)
HSLhsl(255, 71%, 34%)
HSVhsv(255, 83%, 59%)
CMYKcmyk(62.7%, 83.3%, 0%, 41.2%)
CIE-LABlab(22.78, 47.11, -62.07)
CIE-LCHlch(22.78, 77.92, 307.20°)
OKLaboklab(35.58% 0.042 -0.179)
OKLCHoklch(35.58% 0.184 283.2)
XYZxyz(7.4818, 3.7375, 29.1754)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381996 #779619
analogous
#193996 #381996 #771996
triadic
#381996 #963819 #199638
tetradic
#381996 #961939 #779619 #199677
square
#381996 #961939 #779619 #199677
split-complementary
#381996 #967719 #399619
monochromatic
#11082D #241062 #381996 #4C22CA #6E49E1

Accessibility & contrast

On white

12.02
#381996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#381996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381996
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381996#FFFFFF#000000##FFFFFF
##3819961.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381996;
/* rgb */ color: rgb(56, 25, 150);
/* oklch */ color: oklch(35.6% 0.184 283.2);
Tailwind
colors: {
  custom: {
    50: '#7c5cb6',
    500: '#381996',
    950: '#000000',
  },
}
SCSS
$custom: #381996;
$custom-light: #7c5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#381996",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 254.88,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35581,
    "c": 0.18386,
    "h": 283.2
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#381996
secondary
#A4C249
accent
#EE3AC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381996

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

Preview Lab → · Contrast checker → · Palette generator →

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