#382199#382199

#382199 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.180 H 281.7°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#382199
RGBrgb(56, 33, 153)
HSLhsl(252, 65%, 36%)
HSVhsv(252, 78%, 60%)
CMYKcmyk(63.4%, 78.4%, 0%, 40%)
CIE-LABlab(24.41, 44.23, -61.23)
CIE-LCHlch(24.41, 75.53, 305.84°)
OKLaboklab(36.81% 0.0365 -0.1766)
OKLCHoklch(36.81% 0.18 281.7)
XYZxyz(7.9227, 4.2278, 30.5294)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382199 #829921
analogous
#214699 #382199 #742199
triadic
#382199 #993821 #219938
tetradic
#382199 #992146 #829921 #219974
square
#382199 #992146 #829921 #219974
split-complementary
#382199 #997421 #469921
monochromatic
#130B34 #261667 #382199 #4A2CCB #7259DB

Accessibility & contrast

On white

11.38
#382199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#382199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382199
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382199#FFFFFF#000000##FFFFFF
##3821991.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #382199;
/* rgb */ color: rgb(56, 33, 153);
/* oklch */ color: oklch(36.8% 0.180 281.7);
Tailwind
colors: {
  custom: {
    50: '#7c60b8',
    500: '#382199',
    950: '#000000',
  },
}
SCSS
$custom: #382199;
$custom-light: #7c60b8;
$custom-dark: #000000;
JSON
{
  "hex": "#382199",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 251.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36806,
    "c": 0.18036,
    "h": 281.7
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#382199
secondary
#ABBF56
accent
#E840C7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #382199

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

Preview Lab → · Contrast checker → · Palette generator →

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