#382399#382399

#382399 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.178 H 281.4°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#382399
RGBrgb(56, 35, 153)
HSLhsl(251, 63%, 37%)
HSVhsv(251, 77%, 60%)
CMYKcmyk(63.4%, 77.1%, 0%, 40%)
CIE-LABlab(24.77, 43.20, -60.63)
CIE-LCHlch(24.77, 74.45, 305.47°)
OKLaboklab(37.06% 0.0352 -0.1749)
OKLCHoklch(37.06% 0.178 281.4)
XYZxyz(7.9799, 4.3421, 30.5484)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382399 #849923
analogous
#234999 #382399 #732399
triadic
#382399 #993823 #239938
tetradic
#382399 #992349 #849923 #239973
square
#382399 #992349 #849923 #239973
split-complementary
#382399 #997323 #499923
monochromatic
#140C35 #261867 #382399 #4A2ECB #735DDA

Accessibility & contrast

On white

11.24
#382399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#382399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382399
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382399#FFFFFF#000000##FFFFFF
##3823991.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #382399;
/* rgb */ color: rgb(56, 35, 153);
/* oklch */ color: oklch(37.1% 0.178 281.4);
Tailwind
colors: {
  custom: {
    50: '#7c61b8',
    500: '#382399',
    950: '#000000',
  },
}
SCSS
$custom: #382399;
$custom-light: #7c61b8;
$custom-dark: #000000;
JSON
{
  "hex": "#382399",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 250.678,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37059,
    "c": 0.17842,
    "h": 281.4
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#382399
secondary
#ACBE59
accent
#E642C9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #382399

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

Preview Lab → · Contrast checker → · Palette generator →

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