#382271#382271

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

Color values

HEX#382271
RGBrgb(56, 34, 113)
HSLhsl(257, 54%, 29%)
HSVhsv(257, 70%, 44%)
CMYKcmyk(50.4%, 69.9%, 0%, 55.7%)
CIE-LABlab(20.74, 31.24, -42.11)
CIE-LCHlch(20.74, 52.43, 306.58°)
OKLaboklab(33.03% 0.0448 -0.1206)
OKLCHoklch(33.03% 0.129 290.4)
XYZxyz(5.1827, 3.1769, 15.9597)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382271 #5B7122
analogous
#223471 #382271 #602271
triadic
#382271 #713822 #227138
tetradic
#382271 #712234 #5B7122 #227160
square
#382271 #712234 #5B7122 #227160
split-complementary
#382271 #716022 #347122
monochromatic
#0C0718 #211442 #382271 #4F30A0 #6A46C7

Accessibility & contrast

On white

12.84
#382271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#382271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382271
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382271#FFFFFF#000000##FFFFFF
##3822711.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#253546
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #382271;
/* rgb */ color: rgb(56, 34, 113);
/* oklch */ color: oklch(33.0% 0.129 290.4);
Tailwind
colors: {
  custom: {
    50: '#745f9a',
    500: '#382271',
    950: '#000000',
  },
}
SCSS
$custom: #382271;
$custom-light: #745f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#382271",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 256.709,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33026,
    "c": 0.1287,
    "h": 290.4
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#382271
secondary
#8BA44A
accent
#DD4BB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #382271

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

Preview Lab → · Contrast checker → · Palette generator →

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