#382188#382188

#382188 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.160 H 284.9°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#382188
RGBrgb(56, 33, 136)
HSLhsl(253, 61%, 33%)
HSVhsv(253, 76%, 53%)
CMYKcmyk(58.8%, 75.7%, 0%, 46.7%)
CIE-LABlab(22.67, 39.00, -53.55)
CIE-LCHlch(22.67, 66.25, 306.06°)
OKLaboklab(35.06% 0.041 -0.1542)
OKLCHoklch(35.06% 0.16 284.9)
XYZxyz(6.6173, 3.7056, 23.6543)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382188 #718821
analogous
#213D88 #382188 #6B2188
triadic
#382188 #883821 #218838
tetradic
#382188 #88213D #718821 #21886B
square
#382188 #88213D #718821 #21886B
split-complementary
#382188 #886B21 #3D8821
monochromatic
#0F0925 #241557 #382188 #4C2DB9 #6D4FD4

Accessibility & contrast

On white

12.06
#382188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#382188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382188
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382188#FFFFFF#000000##FFFFFF
##3821881.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#0E3D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #382188;
/* rgb */ color: rgb(56, 33, 136);
/* oklch */ color: oklch(35.1% 0.160 284.9);
Tailwind
colors: {
  custom: {
    50: '#795fac',
    500: '#382188',
    950: '#000000',
  },
}
SCSS
$custom: #382188;
$custom-light: #795fac;
$custom-dark: #000000;
JSON
{
  "hex": "#382188",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 253.398,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35063,
    "c": 0.15957,
    "h": 284.9
  },
  "luminance": 0.03706
}

Semantic roles & 50–950 ramp

primary
#382188
secondary
#A0B84D
accent
#E444C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #382188

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

Preview Lab → · Contrast checker → · Palette generator →

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