#3F0540#3F0540

#3F0540 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.4% C 0.113 H 327.4°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#3F0540
RGBrgb(63, 5, 64)
HSLhsl(299, 86%, 14%)
HSVhsv(299, 92%, 25%)
CMYKcmyk(1.6%, 92.2%, 0%, 74.9%)
CIE-LABlab(12.83, 34.25, -21.84)
CIE-LCHlch(12.83, 40.62, 327.47°)
OKLaboklab(26.37% 0.0951 -0.0607)
OKLCHoklch(26.37% 0.113 327.4)
XYZxyz(3.0295, 1.5357, 4.9863)
Luminance0.0154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F0540 #064005
analogous
#210540 #3F0540 #400523
triadic
#3F0540 #403F05 #05403F
tetradic
#3F0540 #402105 #064005 #052340
square
#3F0540 #402105 #064005 #052340
split-complementary
#3F0540 #234005 #054021
monochromatic
#1C021C #1C021C #3F0540 #770979 #AF0EB2

Accessibility & contrast

On white

16.07
#3F0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F0540
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F0540#FFFFFF#000000##FFFFFF
##3F05401.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#16243F
Tritanopia (blue-blind)
#411023
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #3f0540;
/* rgb */ color: rgb(63, 5, 64);
/* oklch */ color: oklch(26.4% 0.113 327.4);
Tailwind
colors: {
  custom: {
    50: '#774e75',
    500: '#3f0540',
    950: '#000000',
  },
}
SCSS
$custom: #3f0540;
$custom-light: #774e75;
$custom-dark: #000000;
JSON
{
  "hex": "#3f0540",
  "rgb": {
    "r": 63,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 298.983,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.26365,
    "c": 0.11279,
    "h": 327.4
  },
  "luminance": 0.01535
}

Semantic roles & 50–950 ramp

primary
#3F0540
secondary
#228120
accent
#FC2C30
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3F0540

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

Preview Lab → · Contrast checker → · Palette generator →

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