#382097#382097

#382097 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.179 H 282.1°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#382097
RGBrgb(56, 32, 151)
HSLhsl(252, 65%, 36%)
HSVhsv(252, 79%, 59%)
CMYKcmyk(62.9%, 78.8%, 0%, 40.8%)
CIE-LABlab(24.02, 44.13, -60.64)
CIE-LCHlch(24.02, 74.99, 306.04°)
OKLaboklab(36.47% 0.0377 -0.1749)
OKLCHoklch(36.47% 0.179 282.1)
XYZxyz(7.7316, 4.1076, 29.6576)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382097 #7F9720
analogous
#204397 #382097 #732097
triadic
#382097 #973820 #209738
tetradic
#382097 #972043 #7F9720 #209773
square
#382097 #972043 #7F9720 #209773
split-complementary
#382097 #977320 #439720
monochromatic
#130B32 #251564 #382097 #4B2BC9 #7156DB

Accessibility & contrast

On white

11.53
#382097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#382097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382097
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382097#FFFFFF#000000##FFFFFF
##3820971.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #382097;
/* rgb */ color: rgb(56, 32, 151);
/* oklch */ color: oklch(36.5% 0.179 282.1);
Tailwind
colors: {
  custom: {
    50: '#7b5fb7',
    500: '#382097',
    950: '#000000',
  },
}
SCSS
$custom: #382097;
$custom-light: #7b5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#382097",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 252.101,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36473,
    "c": 0.17891,
    "h": 282.1
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#382097
secondary
#A9BF54
accent
#E840C6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #382097

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

Preview Lab → · Contrast checker → · Palette generator →

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