#4E1F58#4E1F58

#4E1F58 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.4% C 0.108 H 320.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#4E1F58
RGBrgb(78, 31, 88)
HSLhsl(289, 48%, 23%)
HSVhsv(289, 65%, 35%)
CMYKcmyk(11.4%, 64.8%, 0%, 65.5%)
CIE-LABlab(21.22, 31.68, -24.79)
CIE-LCHlch(21.22, 40.23, 321.96°)
OKLaboklab(33.44% 0.0831 -0.069)
OKLCHoklch(33.44% 0.108 320.3)
XYZxyz(5.3931, 3.3045, 9.5844)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F58 #29581F
analogous
#311F58 #4E1F58 #581F45
triadic
#4E1F58 #584E1F #1F584E
tetradic
#4E1F58 #58311F #29581F #1F4558
square
#4E1F58 #58311F #29581F #1F4558
split-complementary
#4E1F58 #45581F #1F5831
monochromatic
#140817 #260F2B #4E1F58 #762F85 #9E3FB3

Accessibility & contrast

On white

12.64
#4E1F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4E1F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F58
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F58#FFFFFF#000000##FFFFFF
##4E1F581.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12305A
Deuteranopia (green-blind)
#243557
Tritanopia (blue-blind)
#4E2838
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1f58;
/* rgb */ color: rgb(78, 31, 88);
/* oklch */ color: oklch(33.4% 0.108 320.3);
Tailwind
colors: {
  custom: {
    50: '#815e87',
    500: '#4e1f58',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f58;
$custom-light: #815e87;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f58",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 289.474,
    "s": 47.899,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33441,
    "c": 0.10803,
    "h": 320.3
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#4E1F58
secondary
#528D46
accent
#D75068
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1F58

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

Preview Lab → · Contrast checker → · Palette generator →

#4E1F58 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva