#382391#382391

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

Color values

HEX#382391
RGBrgb(56, 35, 145)
HSLhsl(251, 61%, 35%)
HSVhsv(251, 76%, 57%)
CMYKcmyk(61.4%, 75.9%, 0%, 43.1%)
CIE-LABlab(23.96, 40.71, -57.05)
CIE-LCHlch(23.96, 70.08, 305.51°)
OKLaboklab(36.24% 0.0372 -0.1645)
OKLCHoklch(36.24% 0.169 282.8)
XYZxyz(7.3412, 4.0867, 27.1845)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382391 #7C9123
analogous
#234591 #382391 #6F2391
triadic
#382391 #913823 #239138
tetradic
#382391 #912345 #7C9123 #23916F
square
#382391 #912345 #7C9123 #23916F
split-complementary
#382391 #916F23 #459123
monochromatic
#120B2E #251760 #382391 #4B2FC2 #7058D7

Accessibility & contrast

On white

11.55
#382391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382391
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382391#FFFFFF#000000##FFFFFF
##3823911.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #382391;
/* rgb */ color: rgb(56, 35, 145);
/* oklch */ color: oklch(36.2% 0.169 282.8);
Tailwind
colors: {
  custom: {
    50: '#7a61b2',
    500: '#382391',
    950: '#000000',
  },
}
SCSS
$custom: #382391;
$custom-light: #7a61b2;
$custom-dark: #000000;
JSON
{
  "hex": "#382391",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 251.455,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3624,
    "c": 0.16861,
    "h": 282.8
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

primary
#382391
secondary
#A7BB55
accent
#E444C6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #382391

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

Preview Lab → · Contrast checker → · Palette generator →

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