#382159#382159

#382159 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.9% C 0.097 H 299.6°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#382159
RGBrgb(56, 33, 89)
HSLhsl(265, 46%, 24%)
HSVhsv(265, 63%, 35%)
CMYKcmyk(37.1%, 62.9%, 0%, 65.1%)
CIE-LABlab(18.58, 24.53, -29.86)
CIE-LCHlch(18.58, 38.64, 309.41°)
OKLaboklab(30.85% 0.0481 -0.0846)
OKLCHoklch(30.85% 0.097 299.6)
XYZxyz(3.9775, 2.6497, 9.7511)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382159 #425921
analogous
#212659 #382159 #542159
triadic
#382159 #593821 #215938
tetradic
#382159 #592126 #425921 #215954
square
#382159 #592126 #425921 #215954
split-complementary
#382159 #595421 #265921
monochromatic
#0E0816 #1C102C #382159 #543286 #7042B2

Accessibility & contrast

On white

13.73
#382159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#382159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382159
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382159#FFFFFF#000000##FFFFFF
##3821591.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052D5B
Deuteranopia (green-blind)
#0F2D58
Tritanopia (blue-blind)
#312D39
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #382159;
/* rgb */ color: rgb(56, 33, 89);
/* oklch */ color: oklch(30.9% 0.097 299.6);
Tailwind
colors: {
  custom: {
    50: '#715d88',
    500: '#382159',
    950: '#000000',
  },
}
SCSS
$custom: #382159;
$custom-light: #715d88;
$custom-dark: #000000;
JSON
{
  "hex": "#382159",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 264.643,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30853,
    "c": 0.09735,
    "h": 299.6
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#382159
secondary
#718D49
accent
#D652A0
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040B
muted
#7B797C

Preview Lab

Preview with #382159

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

Preview Lab → · Contrast checker → · Palette generator →

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