#3A1572#3A1572

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

Color values

HEX#3A1572
RGBrgb(58, 21, 114)
HSLhsl(264, 69%, 26%)
HSVhsv(264, 82%, 45%)
CMYKcmyk(49.1%, 81.6%, 0%, 55.3%)
CIE-LABlab(18.59, 38.88, -46.26)
CIE-LCHlch(18.59, 60.43, 310.05°)
OKLaboklab(31.59% 0.0604 -0.1327)
OKLCHoklch(31.59% 0.146 294.5)
XYZxyz(5.0495, 2.6506, 16.1619)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1572 #4D7215
analogous
#151F72 #3A1572 #691572
triadic
#3A1572 #723A15 #15723A
tetradic
#3A1572 #72151F #4D7215 #157269
square
#3A1572 #72151F #4D7215 #157269
split-complementary
#3A1572 #726915 #1F7215
monochromatic
#0D051A #200B3E #3A1572 #541FA6 #6F2AD8

Accessibility & contrast

On white

13.72
#3A1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3A1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1572
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1572#FFFFFF#000000##FFFFFF
##3A15721.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1572;
/* rgb */ color: rgb(58, 21, 114);
/* oklch */ color: oklch(31.6% 0.146 294.5);
Tailwind
colors: {
  custom: {
    50: '#77579b',
    500: '#3a1572',
    950: '#000000',
  },
}
SCSS
$custom: #3a1572;
$custom-light: #77579b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1572",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 263.871,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31585,
    "c": 0.14578,
    "h": 294.5
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#3A1572
secondary
#7DA83B
accent
#EC3CA6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1572

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

Preview Lab → · Contrast checker → · Palette generator →

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