#382397#382397

#382397 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.176 H 281.7°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#382397
RGBrgb(56, 35, 151)
HSLhsl(251, 62%, 36%)
HSVhsv(251, 77%, 59%)
CMYKcmyk(62.9%, 76.8%, 0%, 40.8%)
CIE-LABlab(24.57, 42.58, -59.75)
CIE-LCHlch(24.57, 73.37, 305.48°)
OKLaboklab(36.85% 0.0357 -0.1723)
OKLCHoklch(36.85% 0.176 281.7)
XYZxyz(7.8161, 4.2766, 29.6857)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382397 #829723
analogous
#234897 #382397 #722397
triadic
#382397 #973823 #239738
tetradic
#382397 #972348 #829723 #239772
square
#382397 #972348 #829723 #239772
split-complementary
#382397 #977223 #489723
monochromatic
#130C34 #261765 #382397 #4A2FC9 #725BD9

Accessibility & contrast

On white

11.32
#382397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#382397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382397
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382397#FFFFFF#000000##FFFFFF
##3823971.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #382397;
/* rgb */ color: rgb(56, 35, 151);
/* oklch */ color: oklch(36.9% 0.176 281.7);
Tailwind
colors: {
  custom: {
    50: '#7b61b7',
    500: '#382397',
    950: '#000000',
  },
}
SCSS
$custom: #382397;
$custom-light: #7b61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382397",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 250.862,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36853,
    "c": 0.17599,
    "h": 281.7
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#382397
secondary
#ABBE58
accent
#E542C8
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #382397

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

Preview Lab → · Contrast checker → · Palette generator →

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