#382182#382182

#382182 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.152 H 286.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#382182
RGBrgb(56, 33, 130)
HSLhsl(254, 60%, 32%)
HSVhsv(254, 75%, 51%)
CMYKcmyk(56.9%, 74.6%, 0%, 49%)
CIE-LABlab(22.09, 37.13, -50.74)
CIE-LCHlch(22.09, 62.88, 306.20°)
OKLaboklab(34.47% 0.0425 -0.146)
OKLCHoklch(34.47% 0.152 286.2)
XYZxyz(6.2028, 3.5398, 21.4712)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382182 #6B8221
analogous
#213B82 #382182 #692182
triadic
#382182 #823821 #218238
tetradic
#382182 #82213B #6B8221 #218269
square
#382182 #82213B #6B8221 #218269
split-complementary
#382182 #826921 #3B8221
monochromatic
#0E0820 #231551 #382182 #4D2DB3 #6C4CD2

Accessibility & contrast

On white

12.30
#382182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#382182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382182
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382182#FFFFFF#000000##FFFFFF
##3821821.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#173B4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #382182;
/* rgb */ color: rgb(56, 33, 130);
/* oklch */ color: oklch(34.5% 0.152 286.2);
Tailwind
colors: {
  custom: {
    50: '#775fa7',
    500: '#382182',
    950: '#000000',
  },
}
SCSS
$custom: #382182;
$custom-light: #775fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#382182",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 254.227,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3447,
    "c": 0.15204,
    "h": 286.2
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#382182
secondary
#9BB44A
accent
#E345BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #382182

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

Preview Lab → · Contrast checker → · Palette generator →

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