#3F1252#3F1252

#3F1252 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.0% C 0.114 H 313.8°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#3F1252
RGBrgb(63, 18, 82)
HSLhsl(282, 64%, 20%)
HSVhsv(282, 78%, 32%)
CMYKcmyk(23.2%, 78%, 0%, 67.8%)
CIE-LABlab(16.00, 32.88, -29.25)
CIE-LCHlch(16.00, 44.01, 318.35°)
OKLaboklab(29.04% 0.0791 -0.0825)
OKLCHoklch(29.04% 0.114 313.8)
XYZxyz(3.7889, 2.0987, 8.1865)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1252 #255212
analogous
#1F1252 #3F1252 #521245
triadic
#3F1252 #523F12 #12523F
tetradic
#3F1252 #521F12 #255212 #124552
square
#3F1252 #521F12 #255212 #124552
split-complementary
#3F1252 #455212 #12521F
monochromatic
#130619 #180720 #3F1252 #661D84 #8C28B6

Accessibility & contrast

On white

14.79
#3F1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3F1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1252
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1252#FFFFFF#000000##FFFFFF
##3F12521.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#0E2951
Tritanopia (blue-blind)
#3D2030
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f1252;
/* rgb */ color: rgb(63, 18, 82);
/* oklch */ color: oklch(29.0% 0.114 313.8);
Tailwind
colors: {
  custom: {
    50: '#775583',
    500: '#3f1252',
    950: '#000000',
  },
}
SCSS
$custom: #3f1252;
$custom-light: #775583;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1252",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 282.188,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29038,
    "c": 0.11431,
    "h": 313.8
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#3F1252
secondary
#4E8B35
accent
#E74172
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3F1252

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

Preview Lab → · Contrast checker → · Palette generator →

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