#382193#382193

#382193 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.173 H 282.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#382193
RGBrgb(56, 33, 147)
HSLhsl(252, 63%, 35%)
HSVhsv(252, 78%, 58%)
CMYKcmyk(61.9%, 77.6%, 0%, 42.4%)
CIE-LABlab(23.79, 42.39, -58.56)
CIE-LCHlch(23.79, 72.30, 305.90°)
OKLaboklab(36.18% 0.0381 -0.1689)
OKLCHoklch(36.18% 0.173 282.7)
XYZxyz(7.4396, 4.0345, 27.9848)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382193 #7C9321
analogous
#214393 #382193 #712193
triadic
#382193 #933821 #219338
tetradic
#382193 #932143 #7C9321 #219371
square
#382193 #932143 #7C9321 #219371
split-complementary
#382193 #937121 #439321
monochromatic
#120B2F #251661 #382193 #4B2CC5 #7055D9

Accessibility & contrast

On white

11.62
#382193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#382193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382193
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382193#FFFFFF#000000##FFFFFF
##3821931.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003591
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #382193;
/* rgb */ color: rgb(56, 33, 147);
/* oklch */ color: oklch(36.2% 0.173 282.7);
Tailwind
colors: {
  custom: {
    50: '#7b60b4',
    500: '#382193',
    950: '#000000',
  },
}
SCSS
$custom: #382193;
$custom-light: #7b60b4;
$custom-dark: #000000;
JSON
{
  "hex": "#382193",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 252.105,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36181,
    "c": 0.17311,
    "h": 282.7
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#382193
secondary
#A7BD53
accent
#E641C5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #382193

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

Preview Lab → · Contrast checker → · Palette generator →

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