#381992#381992

#381992 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.179 H 284.0°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#381992
RGBrgb(56, 25, 146)
HSLhsl(255, 71%, 34%)
HSVhsv(255, 83%, 57%)
CMYKcmyk(61.6%, 82.9%, 0%, 42.7%)
CIE-LABlab(22.34, 45.96, -60.33)
CIE-LCHlch(22.34, 75.84, 307.30°)
OKLaboklab(35.14% 0.0434 -0.1739)
OKLCHoklch(35.14% 0.179 284)
XYZxyz(7.1652, 3.6109, 27.5079)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381992 #739219
analogous
#193692 #381992 #741992
triadic
#381992 #923819 #199238
tetradic
#381992 #921936 #739219 #199274
square
#381992 #921936 #739219 #199274
split-complementary
#381992 #927419 #369219
monochromatic
#100729 #24105E #381992 #4C22C6 #6D46DF

Accessibility & contrast

On white

12.19
#381992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#381992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381992
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381992#FFFFFF#000000##FFFFFF
##3819921.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#003190
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381992;
/* rgb */ color: rgb(56, 25, 146);
/* oklch */ color: oklch(35.1% 0.179 284.0);
Tailwind
colors: {
  custom: {
    50: '#7b5bb3',
    500: '#381992',
    950: '#000000',
  },
}
SCSS
$custom: #381992;
$custom-light: #7b5bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#381992",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 146
  },
  "hsl": {
    "h": 255.372,
    "s": 70.76,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35144,
    "c": 0.17926,
    "h": 284
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#381992
secondary
#A1C146
accent
#EE3AC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381992

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

Preview Lab → · Contrast checker → · Palette generator →

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