#382160#382160

#382160 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.4% C 0.107 H 296.5°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#382160
RGBrgb(56, 33, 96)
HSLhsl(262, 49%, 25%)
HSVhsv(262, 66%, 38%)
CMYKcmyk(41.7%, 65.6%, 0%, 62.4%)
CIE-LABlab(19.11, 26.62, -33.66)
CIE-LCHlch(19.11, 42.91, 308.35°)
OKLaboklab(31.41% 0.0479 -0.0958)
OKLCHoklch(31.41% 0.107 296.5)
XYZxyz(4.2855, 2.7729, 11.3735)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382160 #496021
analogous
#212960 #382160 #572160
triadic
#382160 #603821 #216038
tetradic
#382160 #602129 #496021 #216057
square
#382160 #602129 #496021 #216057
split-complementary
#382160 #605721 #296021
monochromatic
#0D0817 #1D1132 #382160 #53318E #6D40BB

Accessibility & contrast

On white

13.51
#382160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#382160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382160
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382160#FFFFFF#000000##FFFFFF
##3821601.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F62
Deuteranopia (green-blind)
#032E5F
Tritanopia (blue-blind)
#2E2F3D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #382160;
/* rgb */ color: rgb(56, 33, 96);
/* oklch */ color: oklch(31.4% 0.107 296.5);
Tailwind
colors: {
  custom: {
    50: '#725d8e',
    500: '#382160',
    950: '#000000',
  },
}
SCSS
$custom: #382160;
$custom-light: #725d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#382160",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 261.905,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31407,
    "c": 0.10709,
    "h": 296.5
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#382160
secondary
#799449
accent
#D84FA6
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #382160

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

Preview Lab → · Contrast checker → · Palette generator →

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