#382189#382189

#382189 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.161 H 284.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#382189
RGBrgb(56, 33, 137)
HSLhsl(253, 61%, 33%)
HSVhsv(253, 76%, 54%)
CMYKcmyk(59.1%, 75.9%, 0%, 46.3%)
CIE-LABlab(22.77, 39.31, -54.01)
CIE-LCHlch(22.77, 66.80, 306.04°)
OKLaboklab(35.16% 0.0408 -0.1556)
OKLCHoklch(35.16% 0.161 284.7)
XYZxyz(6.6887, 3.7342, 24.0304)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382189 #728921
analogous
#213E89 #382189 #6C2189
triadic
#382189 #893821 #218938
tetradic
#382189 #89213E #728921 #21896C
square
#382189 #89213E #728921 #21896C
split-complementary
#382189 #896C21 #3E8921
monochromatic
#100926 #241558 #382189 #4C2DBA #6D50D5

Accessibility & contrast

On white

12.02
#382189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#382189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382189
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382189#FFFFFF#000000##FFFFFF
##3821891.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#0C3E53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #382189;
/* rgb */ color: rgb(56, 33, 137);
/* oklch */ color: oklch(35.2% 0.161 284.7);
Tailwind
colors: {
  custom: {
    50: '#795fac',
    500: '#382189',
    950: '#000000',
  },
}
SCSS
$custom: #382189;
$custom-light: #795fac;
$custom-dark: #000000;
JSON
{
  "hex": "#382189",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 253.269,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35163,
    "c": 0.16082,
    "h": 284.7
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#382189
secondary
#A1B84E
accent
#E444C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #382189

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

Preview Lab → · Contrast checker → · Palette generator →

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