#382197#382197

#382197 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.178 H 282.0°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#382197
RGBrgb(56, 33, 151)
HSLhsl(252, 64%, 36%)
HSVhsv(252, 78%, 59%)
CMYKcmyk(62.9%, 78.1%, 0%, 40.8%)
CIE-LABlab(24.20, 43.62, -60.35)
CIE-LCHlch(24.20, 74.46, 305.86°)
OKLaboklab(36.6% 0.037 -0.1741)
OKLCHoklch(36.6% 0.178 282)
XYZxyz(7.7589, 4.1623, 29.6667)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382197 #809721
analogous
#214597 #382197 #732197
triadic
#382197 #973821 #219738
tetradic
#382197 #972145 #809721 #219773
square
#382197 #972145 #809721 #219773
split-complementary
#382197 #977321 #459721
monochromatic
#130B33 #251665 #382197 #4B2CC9 #7158DA

Accessibility & contrast

On white

11.46
#382197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382197
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382197#FFFFFF#000000##FFFFFF
##3821971.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #382197;
/* rgb */ color: rgb(56, 33, 151);
/* oklch */ color: oklch(36.6% 0.178 282.0);
Tailwind
colors: {
  custom: {
    50: '#7b60b7',
    500: '#382197',
    950: '#000000',
  },
}
SCSS
$custom: #382197;
$custom-light: #7b60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382197",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 251.695,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36597,
    "c": 0.17795,
    "h": 282
  },
  "luminance": 0.04163
}

Semantic roles & 50–950 ramp

primary
#382197
secondary
#AABE55
accent
#E741C7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #382197

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

Preview Lab → · Contrast checker → · Palette generator →

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