#382099#382099

#382099 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.181 H 281.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#382099
RGBrgb(56, 32, 153)
HSLhsl(252, 65%, 36%)
HSVhsv(252, 79%, 60%)
CMYKcmyk(63.4%, 79.1%, 0%, 40%)
CIE-LABlab(24.24, 44.73, -61.52)
CIE-LCHlch(24.24, 76.06, 306.02°)
OKLaboklab(36.68% 0.0371 -0.1775)
OKLCHoklch(36.68% 0.181 281.8)
XYZxyz(7.8954, 4.1731, 30.5202)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382099 #819920
analogous
#204599 #382099 #752099
triadic
#382099 #993820 #209938
tetradic
#382099 #992045 #819920 #209975
square
#382099 #992045 #819920 #209975
split-complementary
#382099 #997520 #459920
monochromatic
#130B34 #251566 #382099 #4B2BCC #7257DC

Accessibility & contrast

On white

11.45
#382099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#382099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382099
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382099#FFFFFF#000000##FFFFFF
##3820991.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #382099;
/* rgb */ color: rgb(56, 32, 153);
/* oklch */ color: oklch(36.7% 0.181 281.8);
Tailwind
colors: {
  custom: {
    50: '#7c5fb8',
    500: '#382099',
    950: '#000000',
  },
}
SCSS
$custom: #382099;
$custom-light: #7c5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#382099",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 251.901,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36684,
    "c": 0.1813,
    "h": 281.8
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#382099
secondary
#ABC055
accent
#E83FC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #382099

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

Preview Lab → · Contrast checker → · Palette generator →

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