#382192#382192

#382192 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.172 H 282.9°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#382192
RGBrgb(56, 33, 146)
HSLhsl(252, 63%, 35%)
HSVhsv(252, 77%, 57%)
CMYKcmyk(61.6%, 77.4%, 0%, 42.7%)
CIE-LABlab(23.68, 42.09, -58.12)
CIE-LCHlch(23.68, 71.75, 305.91°)
OKLaboklab(36.08% 0.0384 -0.1675)
OKLCHoklch(36.08% 0.172 282.9)
XYZxyz(7.3614, 4.0033, 27.5734)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382192 #7B9221
analogous
#214392 #382192 #702192
triadic
#382192 #923821 #219238
tetradic
#382192 #922143 #7B9221 #219270
square
#382192 #922143 #7B9221 #219270
split-complementary
#382192 #927021 #439221
monochromatic
#120A2E #251660 #382192 #4B2CC4 #7055D9

Accessibility & contrast

On white

11.66
#382192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#382192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382192
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382192#FFFFFF#000000##FFFFFF
##3821921.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C95
Deuteranopia (green-blind)
#003490
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #382192;
/* rgb */ color: rgb(56, 33, 146);
/* oklch */ color: oklch(36.1% 0.172 282.9);
Tailwind
colors: {
  custom: {
    50: '#7a5fb3',
    500: '#382192',
    950: '#000000',
  },
}
SCSS
$custom: #382192;
$custom-light: #7a5fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#382192",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 146
  },
  "hsl": {
    "h": 252.212,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36078,
    "c": 0.17189,
    "h": 282.9
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#382192
secondary
#A7BC53
accent
#E642C5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #382192

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

Preview Lab → · Contrast checker → · Palette generator →

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