#3E1254#3E1254

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

Color values

HEX#3E1254
RGBrgb(62, 18, 84)
HSLhsl(280, 65%, 20%)
HSVhsv(280, 79%, 33%)
CMYKcmyk(26.2%, 78.6%, 0%, 67.1%)
CIE-LABlab(15.99, 33.13, -30.63)
CIE-LCHlch(15.99, 45.12, 317.25°)
OKLaboklab(29.05% 0.0773 -0.0866)
OKLCHoklch(29.05% 0.116 311.8)
XYZxyz(3.8028, 2.0969, 8.5902)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1254 #285412
analogous
#1D1254 #3E1254 #541249
triadic
#3E1254 #543E12 #12543E
tetradic
#3E1254 #541D12 #285412 #124954
square
#3E1254 #541D12 #285412 #124954
split-complementary
#3E1254 #495412 #12541D
monochromatic
#130519 #190722 #3E1254 #631D86 #8828B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E1254#FFFFFF#000000##FFFFFF
##3E12541.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)
#002656
Deuteranopia (green-blind)
#092953
Tritanopia (blue-blind)
#3B2132
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3e1254;
/* rgb */ color: rgb(62, 18, 84);
/* oklch */ color: oklch(29.0% 0.116 311.8);
Tailwind
colors: {
  custom: {
    50: '#765585',
    500: '#3e1254',
    950: '#000000',
  },
}
SCSS
$custom: #3e1254;
$custom-light: #765585;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1254",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 280,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.29047,
    "c": 0.1161,
    "h": 311.8
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#3E1254
secondary
#528D35
accent
#E84078
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3E1254

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

Preview Lab → · Contrast checker → · Palette generator →

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