#381572#381572

#381572 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.146 H 293.1°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#381572
RGBrgb(56, 21, 114)
HSLhsl(263, 69%, 26%)
HSVhsv(263, 82%, 45%)
CMYKcmyk(50.9%, 81.6%, 0%, 55.3%)
CIE-LABlab(18.33, 38.57, -46.70)
CIE-LCHlch(18.33, 60.56, 309.56°)
OKLaboklab(31.35% 0.0571 -0.134)
OKLCHoklch(31.35% 0.146 293.1)
XYZxyz(4.9355, 2.5918, 16.1566)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381572 #4F7215
analogous
#152072 #381572 #671572
triadic
#381572 #723815 #157238
tetradic
#381572 #721520 #4F7215 #157267
square
#381572 #721520 #4F7215 #157267
split-complementary
#381572 #726715 #207215
monochromatic
#0D051A #1F0B3E #381572 #511FA6 #6B2AD8

Accessibility & contrast

On white

13.83
#381572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381572
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381572#FFFFFF#000000##FFFFFF
##3815721.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#262F43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381572;
/* rgb */ color: rgb(56, 21, 114);
/* oklch */ color: oklch(31.3% 0.146 293.1);
Tailwind
colors: {
  custom: {
    50: '#76579b',
    500: '#381572',
    950: '#000000',
  },
}
SCSS
$custom: #381572;
$custom-light: #76579b;
$custom-dark: #000000;
JSON
{
  "hex": "#381572",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 262.581,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31347,
    "c": 0.14568,
    "h": 293.1
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#381572
secondary
#7FA83B
accent
#EC3CAA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381572

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

Preview Lab → · Contrast checker → · Palette generator →

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