#3A0640#3A0640

#3A0640 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.6% C 0.109 H 323.3°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#3A0640
RGBrgb(58, 6, 64)
HSLhsl(294, 83%, 14%)
HSVhsv(294, 91%, 25%)
CMYKcmyk(9.4%, 90.6%, 0%, 74.9%)
CIE-LABlab(11.96, 32.72, -23.30)
CIE-LCHlch(11.96, 40.16, 324.54°)
OKLaboklab(25.55% 0.0875 -0.0652)
OKLCHoklch(25.55% 0.109 323.3)
XYZxyz(2.7354, 1.4001, 4.9757)
Luminance0.0140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0640 #0C4006
analogous
#1D0640 #3A0640 #400629
triadic
#3A0640 #403A06 #06403A
tetradic
#3A0640 #401D06 #0C4006 #062940
square
#3A0640 #401D06 #0C4006 #062940
split-complementary
#3A0640 #294006 #06401D
monochromatic
#19031C #19031C #3A0640 #6D0B78 #9F10B0

Accessibility & contrast

On white

16.41
#3A0640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0640
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0640#FFFFFF#000000##FFFFFF
##3A06401.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#11213F
Tritanopia (blue-blind)
#3B1223
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #3a0640;
/* rgb */ color: rgb(58, 6, 64);
/* oklch */ color: oklch(25.6% 0.109 323.3);
Tailwind
colors: {
  custom: {
    50: '#734e75',
    500: '#3a0640',
    950: '#000000',
  },
}
SCSS
$custom: #3a0640;
$custom-light: #734e75;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0640",
  "rgb": {
    "r": 58,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 293.793,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.25553,
    "c": 0.10906,
    "h": 323.3
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

primary
#3A0640
secondary
#2C8022
accent
#F92F44
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0640

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

Preview Lab → · Contrast checker → · Palette generator →

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