#382172#382172

#382172 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.131 H 290.4°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#382172
RGBrgb(56, 33, 114)
HSLhsl(257, 55%, 29%)
HSVhsv(257, 71%, 45%)
CMYKcmyk(50.9%, 71.1%, 0%, 55.3%)
CIE-LABlab(20.61, 32.15, -42.97)
CIE-LCHlch(20.61, 53.66, 306.81°)
OKLaboklab(32.96% 0.0457 -0.1232)
OKLCHoklch(32.96% 0.131 290.4)
XYZxyz(5.2111, 3.1432, 16.2484)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382172 #5B7221
analogous
#213372 #382172 #612172
triadic
#382172 #723821 #217238
tetradic
#382172 #722133 #5B7221 #217261
square
#382172 #722133 #5B7221 #217261
split-complementary
#382172 #726121 #337221
monochromatic
#0C0718 #211343 #382172 #4F2FA1 #6A44C9

Accessibility & contrast

On white

12.89
#382172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382172
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382172#FFFFFF#000000##FFFFFF
##3821721.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#253546
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #382172;
/* rgb */ color: rgb(56, 33, 114);
/* oklch */ color: oklch(33.0% 0.131 290.4);
Tailwind
colors: {
  custom: {
    50: '#755e9b',
    500: '#382172',
    950: '#000000',
  },
}
SCSS
$custom: #382172;
$custom-light: #755e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#382172",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 257.037,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32959,
    "c": 0.13137,
    "h": 290.4
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#382172
secondary
#8BA549
accent
#DE49B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #382172

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

Preview Lab → · Contrast checker → · Palette generator →

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