#3F0542#3F0542

#3F0542 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.5% C 0.115 H 325.9°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#3F0542
RGBrgb(63, 5, 66)
HSLhsl(297, 86%, 14%)
HSVhsv(297, 92%, 26%)
CMYKcmyk(4.5%, 92.4%, 0%, 74.1%)
CIE-LABlab(12.98, 34.63, -23.02)
CIE-LCHlch(12.98, 41.59, 326.38°)
OKLaboklab(26.51% 0.0949 -0.0642)
OKLCHoklch(26.51% 0.115 325.9)
XYZxyz(3.0875, 1.5589, 5.2915)
Luminance0.0156 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F0542 #084205
analogous
#210542 #3F0542 #420527
triadic
#3F0542 #423F05 #05423F
tetradic
#3F0542 #422105 #084205 #052742
square
#3F0542 #422105 #084205 #052742
split-complementary
#3F0542 #274205 #054221
monochromatic
#1B021C #1B021C #3F0542 #75097B #AC0EB4

Accessibility & contrast

On white

16.01
#3F0542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#3F0542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F0542
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F0542#FFFFFF#000000##FFFFFF
##3F05421.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#142441
Tritanopia (blue-blind)
#411124
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #3f0542;
/* rgb */ color: rgb(63, 5, 66);
/* oklch */ color: oklch(26.5% 0.115 325.9);
Tailwind
colors: {
  custom: {
    50: '#774e77',
    500: '#3f0542',
    950: '#000000',
  },
}
SCSS
$custom: #3f0542;
$custom-light: #774e77;
$custom-dark: #000000;
JSON
{
  "hex": "#3f0542",
  "rgb": {
    "r": 63,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 297.049,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.26513,
    "c": 0.11453,
    "h": 325.9
  },
  "luminance": 0.01559
}

Semantic roles & 50–950 ramp

primary
#3F0542
secondary
#258220
accent
#FC2C36
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3F0542

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

Preview Lab → · Contrast checker → · Palette generator →

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