#382292#382292

#382292 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.171 H 282.7°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#382292
RGBrgb(56, 34, 146)
HSLhsl(252, 62%, 35%)
HSVhsv(252, 77%, 57%)
CMYKcmyk(61.6%, 76.7%, 0%, 42.7%)
CIE-LABlab(23.87, 41.56, -57.81)
CIE-LCHlch(23.87, 71.20, 305.71°)
OKLaboklab(36.21% 0.0377 -0.1667)
OKLCHoklch(36.21% 0.171 282.7)
XYZxyz(7.3896, 4.0596, 27.5827)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382292 #7C9222
analogous
#224492 #382292 #702292
triadic
#382292 #923822 #229238
tetradic
#382292 #922244 #7C9222 #229270
square
#382292 #922244 #7C9222 #229270
split-complementary
#382292 #927022 #449222
monochromatic
#120B2F #251660 #382292 #4B2EC4 #7057D8

Accessibility & contrast

On white

11.59
#382292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#382292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382292
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382292#FFFFFF#000000##FFFFFF
##3822921.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C95
Deuteranopia (green-blind)
#003590
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #382292;
/* rgb */ color: rgb(56, 34, 146);
/* oklch */ color: oklch(36.2% 0.171 282.7);
Tailwind
colors: {
  custom: {
    50: '#7a60b3',
    500: '#382292',
    950: '#000000',
  },
}
SCSS
$custom: #382292;
$custom-light: #7a60b3;
$custom-dark: #000000;
JSON
{
  "hex": "#382292",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 251.786,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36208,
    "c": 0.17088,
    "h": 282.7
  },
  "luminance": 0.0406
}

Semantic roles & 50–950 ramp

primary
#382292
secondary
#A7BC54
accent
#E543C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #382292

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

Preview Lab → · Contrast checker → · Palette generator →

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