#382173#382173

#382173 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.133 H 290.1°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#382173
RGBrgb(56, 33, 115)
HSLhsl(257, 55%, 29%)
HSVhsv(257, 71%, 45%)
CMYKcmyk(51.3%, 71.3%, 0%, 54.9%)
CIE-LABlab(20.70, 32.46, -43.46)
CIE-LCHlch(20.70, 54.25, 306.76°)
OKLaboklab(33.05% 0.0455 -0.1246)
OKLCHoklch(33.05% 0.133 290.1)
XYZxyz(5.2684, 3.1661, 16.5498)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382173 #5C7321
analogous
#213373 #382173 #612173
triadic
#382173 #733821 #217338
tetradic
#382173 #732133 #5C7321 #217361
square
#382173 #732133 #5C7321 #217361
split-complementary
#382173 #736121 #337321
monochromatic
#0C0718 #211343 #382173 #4F2FA3 #6A45CA

Accessibility & contrast

On white

12.86
#382173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#382173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382173
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382173#FFFFFF#000000##FFFFFF
##3821731.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#243647
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #382173;
/* rgb */ color: rgb(56, 33, 115);
/* oklch */ color: oklch(33.1% 0.133 290.1);
Tailwind
colors: {
  custom: {
    50: '#755e9c',
    500: '#382173',
    950: '#000000',
  },
}
SCSS
$custom: #382173;
$custom-light: #755e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#382173",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 256.829,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3305,
    "c": 0.13269,
    "h": 290.1
  },
  "luminance": 0.03166
}

Semantic roles & 50–950 ramp

primary
#382173
secondary
#8CA649
accent
#DF49B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #382173

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

Preview Lab → · Contrast checker → · Palette generator →

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