#382572#382572

#382572 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.6% C 0.126 H 289.2°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#382572
RGBrgb(56, 37, 114)
HSLhsl(255, 51%, 30%)
HSVhsv(255, 68%, 45%)
CMYKcmyk(50.9%, 67.5%, 0%, 55.3%)
CIE-LABlab(21.50, 29.73, -41.51)
CIE-LCHlch(21.50, 51.06, 305.61°)
OKLaboklab(33.6% 0.0413 -0.1189)
OKLCHoklch(33.6% 0.126 289.2)
XYZxyz(5.3288, 3.3786, 16.2877)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382572 #5F7225
analogous
#253972 #382572 #5F2572
triadic
#382572 #723825 #257238
tetradic
#382572 #722539 #5F7225 #25725F
square
#382572 #722539 #5F7225 #25725F
split-complementary
#382572 #725F25 #397225
monochromatic
#0B0717 #211644 #382572 #4F34A0 #6A4CC5

Accessibility & contrast

On white

12.53
#382572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#382572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382572
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382572#FFFFFF#000000##FFFFFF
##3825721.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#253848
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #382572;
/* rgb */ color: rgb(56, 37, 114);
/* oklch */ color: oklch(33.6% 0.126 289.2);
Tailwind
colors: {
  custom: {
    50: '#74619b',
    500: '#382572',
    950: '#000000',
  },
}
SCSS
$custom: #382572;
$custom-light: #74619b;
$custom-dark: #000000;
JSON
{
  "hex": "#382572",
  "rgb": {
    "r": 56,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 254.805,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33602,
    "c": 0.12588,
    "h": 289.2
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#382572
secondary
#8FA54E
accent
#DA4DB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #382572

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

Preview Lab → · Contrast checker → · Palette generator →

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