#382196#382196

#382196 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.177 H 282.2°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#382196
RGBrgb(56, 33, 150)
HSLhsl(252, 64%, 36%)
HSVhsv(252, 78%, 59%)
CMYKcmyk(62.7%, 78%, 0%, 41.2%)
CIE-LABlab(24.10, 43.31, -59.90)
CIE-LCHlch(24.10, 73.92, 305.87°)
OKLaboklab(36.49% 0.0373 -0.1728)
OKLCHoklch(36.49% 0.177 282.2)
XYZxyz(7.6780, 4.1299, 29.2408)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382196 #7F9621
analogous
#214496 #382196 #722196
triadic
#382196 #963821 #219638
tetradic
#382196 #962144 #7F9621 #219672
square
#382196 #962144 #7F9621 #219672
split-complementary
#382196 #967221 #449621
monochromatic
#130B32 #251664 #382196 #4B2CC8 #7157DA

Accessibility & contrast

On white

11.50
#382196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382196
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382196#FFFFFF#000000##FFFFFF
##3821961.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #382196;
/* rgb */ color: rgb(56, 33, 150);
/* oklch */ color: oklch(36.5% 0.177 282.2);
Tailwind
colors: {
  custom: {
    50: '#7b60b6',
    500: '#382196',
    950: '#000000',
  },
}
SCSS
$custom: #382196;
$custom-light: #7b60b6;
$custom-dark: #000000;
JSON
{
  "hex": "#382196",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 251.795,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36492,
    "c": 0.17675,
    "h": 282.2
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#382196
secondary
#A9BE55
accent
#E741C6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #382196

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

Preview Lab → · Contrast checker → · Palette generator →

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