#382296#382296

#382296 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.176 H 282.0°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#382296
RGBrgb(56, 34, 150)
HSLhsl(251, 63%, 36%)
HSVhsv(251, 77%, 59%)
CMYKcmyk(62.7%, 77.3%, 0%, 41.2%)
CIE-LABlab(24.28, 42.79, -59.60)
CIE-LCHlch(24.28, 73.38, 305.68°)
OKLaboklab(36.62% 0.0366 -0.1719)
OKLCHoklch(36.62% 0.176 282)
XYZxyz(7.7062, 4.1863, 29.2502)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382296 #809622
analogous
#224696 #382296 #722296
triadic
#382296 #963822 #229638
tetradic
#382296 #962246 #809622 #229672
square
#382296 #962246 #809622 #229672
split-complementary
#382296 #967222 #469622
monochromatic
#130B32 #251764 #382296 #4B2DC8 #7159D9

Accessibility & contrast

On white

11.43
#382296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#382296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382296
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382296#FFFFFF#000000##FFFFFF
##3822961.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #382296;
/* rgb */ color: rgb(56, 34, 150);
/* oklch */ color: oklch(36.6% 0.176 282.0);
Tailwind
colors: {
  custom: {
    50: '#7b60b6',
    500: '#382296',
    950: '#000000',
  },
}
SCSS
$custom: #382296;
$custom-light: #7b60b6;
$custom-dark: #000000;
JSON
{
  "hex": "#382296",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 251.379,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3662,
    "c": 0.17577,
    "h": 282
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#382296
secondary
#AABE56
accent
#E642C7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #382296

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

Preview Lab → · Contrast checker → · Palette generator →

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