#382091#382091

#382091 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.172 H 283.3°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#382091
RGBrgb(56, 32, 145)
HSLhsl(253, 64%, 35%)
HSVhsv(253, 78%, 57%)
CMYKcmyk(61.4%, 77.9%, 0%, 43.1%)
CIE-LABlab(23.40, 42.30, -57.97)
CIE-LCHlch(23.40, 71.76, 306.12°)
OKLaboklab(35.85% 0.0394 -0.1671)
OKLCHoklch(35.85% 0.172 283.3)
XYZxyz(7.2567, 3.9176, 27.1564)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382091 #799120
analogous
#204191 #382091 #702091
triadic
#382091 #913820 #209138
tetradic
#382091 #912041 #799120 #209170
square
#382091 #912041 #799120 #209170
split-complementary
#382091 #917020 #419120
monochromatic
#110A2D #25155F #382091 #4B2BC3 #6F52D9

Accessibility & contrast

On white

11.77
#382091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#382091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382091
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382091#FFFFFF#000000##FFFFFF
##3820911.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #382091;
/* rgb */ color: rgb(56, 32, 145);
/* oklch */ color: oklch(35.8% 0.172 283.3);
Tailwind
colors: {
  custom: {
    50: '#7a5fb2',
    500: '#382091',
    950: '#000000',
  },
}
SCSS
$custom: #382091;
$custom-light: #7a5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#382091",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 145
  },
  "hsl": {
    "h": 252.743,
    "s": 63.842,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35847,
    "c": 0.17168,
    "h": 283.3
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#382091
secondary
#A5BC51
accent
#E741C4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #382091

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

Preview Lab → · Contrast checker → · Palette generator →

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