#3D1572#3D1572

#3D1572 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.146 H 296.6°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#3D1572
RGBrgb(61, 21, 114)
HSLhsl(266, 69%, 26%)
HSVhsv(266, 82%, 45%)
CMYKcmyk(46.5%, 81.6%, 0%, 55.3%)
CIE-LABlab(18.98, 39.37, -45.59)
CIE-LCHlch(18.98, 60.24, 310.81°)
OKLaboklab(31.95% 0.0653 -0.1306)
OKLCHoklch(31.95% 0.146 296.6)
XYZxyz(5.2291, 2.7432, 16.1703)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1572 #4A7215
analogous
#151C72 #3D1572 #6C1572
triadic
#3D1572 #723D15 #15723D
tetradic
#3D1572 #72151C #4A7215 #15726C
square
#3D1572 #72151C #4A7215 #15726C
split-complementary
#3D1572 #726C15 #1C7215
monochromatic
#0E051A #210B3E #3D1572 #591FA6 #752AD8

Accessibility & contrast

On white

13.56
#3D1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3D1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1572
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1572#FFFFFF#000000##FFFFFF
##3D15721.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#2F2F43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d1572;
/* rgb */ color: rgb(61, 21, 114);
/* oklch */ color: oklch(32.0% 0.146 296.6);
Tailwind
colors: {
  custom: {
    50: '#79589b',
    500: '#3d1572',
    950: '#000000',
  },
}
SCSS
$custom: #3d1572;
$custom-light: #79589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1572",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 265.806,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31951,
    "c": 0.14603,
    "h": 296.6
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#3D1572
secondary
#79A83B
accent
#EC3CA0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1572

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

Preview Lab → · Contrast checker → · Palette generator →

#3D1572 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva