#3A0942#3A0942

#3A0942 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.0% C 0.107 H 321.5°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#3A0942
RGBrgb(58, 9, 66)
HSLhsl(292, 76%, 15%)
HSVhsv(292, 86%, 26%)
CMYKcmyk(12.1%, 86.4%, 0%, 74.1%)
CIE-LABlab(12.53, 31.91, -23.79)
CIE-LCHlch(12.53, 39.80, 323.29°)
OKLaboklab(26.01% 0.0839 -0.0666)
OKLCHoklch(26.01% 0.107 321.5)
XYZxyz(2.8259, 1.4884, 5.2916)
Luminance0.0149 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0942 #114209
analogous
#1E0942 #3A0942 #42092E
triadic
#3A0942 #423A09 #09423A
tetradic
#3A0942 #421E09 #114209 #092E42
square
#3A0942 #421E09 #114209 #092E42
split-complementary
#3A0942 #2E4209 #09421E
monochromatic
#18041B #18041B #3A0942 #691078 #9918AE

Accessibility & contrast

On white

16.18
#3A0942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#3A0942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0942
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0942#FFFFFF#000000##FFFFFF
##3A09421.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#112241
Tritanopia (blue-blind)
#3B1525
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #3a0942;
/* rgb */ color: rgb(58, 9, 66);
/* oklch */ color: oklch(26.0% 0.107 321.5);
Tailwind
colors: {
  custom: {
    50: '#734f77',
    500: '#3a0942',
    950: '#000000',
  },
}
SCSS
$custom: #3a0942;
$custom-light: #734f77;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0942",
  "rgb": {
    "r": 58,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 291.579,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.26009,
    "c": 0.10713,
    "h": 321.5
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

primary
#3A0942
secondary
#338027
accent
#F33550
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0942

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

Preview Lab → · Contrast checker → · Palette generator →

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