#3B0542#3B0542

#3B0542 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.8% C 0.113 H 322.7°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#3B0542
RGBrgb(59, 5, 66)
HSLhsl(293, 86%, 14%)
HSVhsv(293, 92%, 26%)
CMYKcmyk(10.6%, 92.4%, 0%, 74.1%)
CIE-LABlab(12.17, 33.76, -24.37)
CIE-LCHlch(12.17, 41.63, 324.18°)
OKLaboklab(25.79% 0.0896 -0.0682)
OKLCHoklch(25.79% 0.113 322.7)
XYZxyz(2.8412, 1.4319, 5.2799)
Luminance0.0143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B0542 #0C4205
analogous
#1D0542 #3B0542 #42052B
triadic
#3B0542 #423B05 #05423B
tetradic
#3B0542 #421D05 #0C4205 #052B42
square
#3B0542 #421D05 #0C4205 #052B42
split-complementary
#3B0542 #2B4205 #05421D
monochromatic
#19021C #19021C #3B0542 #6E097B #A10EB4

Accessibility & contrast

On white

16.32
#3B0542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#3B0542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B0542
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B0542#FFFFFF#000000##FFFFFF
##3B05421.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b0542;
/* rgb */ color: rgb(59, 5, 66);
/* oklch */ color: oklch(25.8% 0.113 322.7);
Tailwind
colors: {
  custom: {
    50: '#744d77',
    500: '#3b0542',
    950: '#000000',
  },
}
SCSS
$custom: #3b0542;
$custom-light: #744d77;
$custom-dark: #000000;
JSON
{
  "hex": "#3b0542",
  "rgb": {
    "r": 59,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 293.115,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25788,
    "c": 0.11267,
    "h": 322.7
  },
  "luminance": 0.01432
}

Semantic roles & 50–950 ramp

primary
#3B0542
secondary
#2C8220
accent
#FC2C44
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3B0542

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

Preview Lab → · Contrast checker → · Palette generator →

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