#3D1252#3D1252

#3D1252 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.7% C 0.114 H 312.1°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#3D1252
RGBrgb(61, 18, 82)
HSLhsl(280, 64%, 20%)
HSVhsv(280, 78%, 32%)
CMYKcmyk(25.6%, 78%, 0%, 67.8%)
CIE-LABlab(15.66, 32.41, -29.80)
CIE-LCHlch(15.66, 44.03, 317.41°)
OKLaboklab(28.73% 0.0762 -0.0842)
OKLCHoklch(28.73% 0.114 312.1)
XYZxyz(3.6635, 2.0340, 8.1806)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1252 #275212
analogous
#1D1252 #3D1252 #521247
triadic
#3D1252 #523D12 #12523D
tetradic
#3D1252 #521D12 #275212 #124752
square
#3D1252 #521D12 #275212 #124752
split-complementary
#3D1252 #475212 #12521D
monochromatic
#130619 #180720 #3D1252 #621D84 #8828B6

Accessibility & contrast

On white

14.93
#3D1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3D1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1252
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1252#FFFFFF#000000##FFFFFF
##3D12521.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#0A2851
Tritanopia (blue-blind)
#3B2030
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3d1252;
/* rgb */ color: rgb(61, 18, 82);
/* oklch */ color: oklch(28.7% 0.114 312.1);
Tailwind
colors: {
  custom: {
    50: '#755483',
    500: '#3d1252',
    950: '#000000',
  },
}
SCSS
$custom: #3d1252;
$custom-light: #755483;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1252",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 280.313,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28733,
    "c": 0.11353,
    "h": 312.1
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#3D1252
secondary
#518B35
accent
#E74177
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3D1252

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

Preview Lab → · Contrast checker → · Palette generator →

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