#382086#382086

#382086 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.158 H 285.5°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#382086
RGBrgb(56, 32, 134)
HSLhsl(254, 61%, 33%)
HSVhsv(254, 76%, 53%)
CMYKcmyk(58.2%, 76.1%, 0%, 47.5%)
CIE-LABlab(22.28, 38.92, -52.94)
CIE-LCHlch(22.28, 65.71, 306.32°)
OKLaboklab(34.73% 0.0423 -0.1524)
OKLCHoklch(34.73% 0.158 285.5)
XYZxyz(6.4492, 3.5946, 22.9036)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382086 #6E8620
analogous
#203B86 #382086 #6B2086
triadic
#382086 #863820 #208638
tetradic
#382086 #86203B #6E8620 #20866B
square
#382086 #86203B #6E8620 #20866B
split-complementary
#382086 #866B20 #3B8620
monochromatic
#0F0823 #231455 #382086 #4D2CB7 #6C4CD4

Accessibility & contrast

On white

12.22
#382086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#382086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382086
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382086#FFFFFF#000000##FFFFFF
##3820861.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#123C51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #382086;
/* rgb */ color: rgb(56, 32, 134);
/* oklch */ color: oklch(34.7% 0.158 285.5);
Tailwind
colors: {
  custom: {
    50: '#785eaa',
    500: '#382086',
    950: '#000000',
  },
}
SCSS
$custom: #382086;
$custom-light: #785eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#382086",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 254.118,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34727,
    "c": 0.15817,
    "h": 285.5
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#382086
secondary
#9EB74B
accent
#E543BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #382086

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

Preview Lab → · Contrast checker → · Palette generator →

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