#3F1254#3F1254

#3F1254 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.2% C 0.116 H 312.6°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#3F1254
RGBrgb(63, 18, 84)
HSLhsl(281, 65%, 20%)
HSVhsv(281, 79%, 33%)
CMYKcmyk(25%, 78.6%, 0%, 67.1%)
CIE-LABlab(16.15, 33.37, -30.35)
CIE-LCHlch(16.15, 45.11, 317.71°)
OKLaboklab(29.2% 0.0788 -0.0858)
OKLCHoklch(29.2% 0.116 312.6)
XYZxyz(3.8662, 2.1296, 8.5932)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1254 #275412
analogous
#1E1254 #3F1254 #541248
triadic
#3F1254 #543F12 #12543F
tetradic
#3F1254 #541E12 #275412 #124854
square
#3F1254 #541E12 #275412 #124854
split-complementary
#3F1254 #485412 #12541E
monochromatic
#130519 #190722 #3F1254 #651D86 #8B28B9

Accessibility & contrast

On white

14.73
#3F1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3F1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1254
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1254#FFFFFF#000000##FFFFFF
##3F12541.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#0B2953
Tritanopia (blue-blind)
#3D2032
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f1254;
/* rgb */ color: rgb(63, 18, 84);
/* oklch */ color: oklch(29.2% 0.116 312.6);
Tailwind
colors: {
  custom: {
    50: '#775585',
    500: '#3f1254',
    950: '#000000',
  },
}
SCSS
$custom: #3f1254;
$custom-light: #775585;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1254",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 280.909,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.29198,
    "c": 0.11648,
    "h": 312.6
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#3F1254
secondary
#518D35
accent
#E84075
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1254

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

Preview Lab → · Contrast checker → · Palette generator →

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