#382186#382186

#382186 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.157 H 285.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#382186
RGBrgb(56, 33, 134)
HSLhsl(254, 60%, 33%)
HSVhsv(254, 75%, 53%)
CMYKcmyk(58.2%, 75.4%, 0%, 47.5%)
CIE-LABlab(22.48, 38.38, -52.62)
CIE-LCHlch(22.48, 65.13, 306.10°)
OKLaboklab(34.86% 0.0415 -0.1515)
OKLCHoklch(34.86% 0.157 285.3)
XYZxyz(6.4765, 3.6493, 22.9128)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382186 #6F8621
analogous
#213D86 #382186 #6A2186
triadic
#382186 #863821 #218638
tetradic
#382186 #86213D #6F8621 #21866A
square
#382186 #86213D #6F8621 #21866A
split-complementary
#382186 #866A21 #3D8621
monochromatic
#0F0924 #231555 #382186 #4D2DB7 #6C4ED3

Accessibility & contrast

On white

12.14
#382186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#382186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382186
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382186#FFFFFF#000000##FFFFFF
##3821861.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#123D51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #382186;
/* rgb */ color: rgb(56, 33, 134);
/* oklch */ color: oklch(34.9% 0.157 285.3);
Tailwind
colors: {
  custom: {
    50: '#785faa',
    500: '#382186',
    950: '#000000',
  },
}
SCSS
$custom: #382186;
$custom-light: #785faa;
$custom-dark: #000000;
JSON
{
  "hex": "#382186",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 253.663,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34864,
    "c": 0.15707,
    "h": 285.3
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#382186
secondary
#9EB74C
accent
#E444BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #382186

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

Preview Lab → · Contrast checker → · Palette generator →

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