#3A0642#3A0642

#3A0642 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.7% C 0.111 H 321.8°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#3A0642
RGBrgb(58, 6, 66)
HSLhsl(292, 83%, 14%)
HSVhsv(292, 91%, 26%)
CMYKcmyk(12.1%, 90.9%, 0%, 74.1%)
CIE-LABlab(12.11, 33.13, -24.47)
CIE-LCHlch(12.11, 41.18, 323.55°)
OKLaboklab(25.71% 0.0872 -0.0686)
OKLCHoklch(25.71% 0.111 321.8)
XYZxyz(2.7933, 1.4233, 5.2808)
Luminance0.0142 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0642 #0E4206
analogous
#1C0642 #3A0642 #42062C
triadic
#3A0642 #423A06 #06423A
tetradic
#3A0642 #421C06 #0E4206 #062C42
square
#3A0642 #421C06 #0E4206 #062C42
split-complementary
#3A0642 #2C4206 #06421C
monochromatic
#19031C #19031C #3A0642 #6B0B7A #9D10B2

Accessibility & contrast

On white

16.35
#3A0642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#3A0642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0642
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0642#FFFFFF#000000##FFFFFF
##3A06421.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#0F2241
Tritanopia (blue-blind)
#3B1324
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3a0642;
/* rgb */ color: rgb(58, 6, 66);
/* oklch */ color: oklch(25.7% 0.111 321.8);
Tailwind
colors: {
  custom: {
    50: '#734e77',
    500: '#3a0642',
    950: '#000000',
  },
}
SCSS
$custom: #3a0642;
$custom-light: #734e77;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0642",
  "rgb": {
    "r": 58,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 292,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2571,
    "c": 0.11092,
    "h": 321.8
  },
  "luminance": 0.01423
}

Semantic roles & 50–950 ramp

primary
#3A0642
secondary
#2F8222
accent
#FA2E49
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0642

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

Preview Lab → · Contrast checker → · Palette generator →

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