#382495#382495

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

Color values

HEX#382495
RGBrgb(56, 36, 149)
HSLhsl(251, 61%, 36%)
HSVhsv(251, 76%, 58%)
CMYKcmyk(62.4%, 75.8%, 0%, 41.6%)
CIE-LABlab(24.55, 41.42, -58.54)
CIE-LCHlch(24.55, 71.71, 305.28°)
OKLaboklab(36.78% 0.0355 -0.1688)
OKLCHoklch(36.78% 0.173 281.9)
XYZxyz(7.6849, 4.2719, 28.8475)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382495 #819524
analogous
#244995 #382495 #712495
triadic
#382495 #953824 #249538
tetradic
#382495 #952449 #819524 #249571
square
#382495 #952449 #819524 #249571
split-complementary
#382495 #957124 #499524
monochromatic
#130C32 #251864 #382495 #4B30C6 #725CD8

Accessibility & contrast

On white

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

On black

1.85
#382495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##382495#FFFFFF#000000##FFFFFF
##3824951.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #382495;
/* rgb */ color: rgb(56, 36, 149);
/* oklch */ color: oklch(36.8% 0.172 281.9);
Tailwind
colors: {
  custom: {
    50: '#7b61b5',
    500: '#382495',
    950: '#000000',
  },
}
SCSS
$custom: #382495;
$custom-light: #7b61b5;
$custom-dark: #000000;
JSON
{
  "hex": "#382495",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 250.619,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36781,
    "c": 0.1725,
    "h": 281.9
  },
  "luminance": 0.04272
}

Semantic roles & 50–950 ramp

primary
#382495
secondary
#ABBC59
accent
#E444C8
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #382495

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

Preview Lab → · Contrast checker → · Palette generator →

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