#4E1F62#4E1F62

#4E1F62 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.1% C 0.119 H 314.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#4E1F62
RGBrgb(78, 31, 98)
HSLhsl(282, 52%, 25%)
HSVhsv(282, 68%, 38%)
CMYKcmyk(20.4%, 68.4%, 0%, 61.6%)
CIE-LABlab(21.88, 33.99, -30.36)
CIE-LCHlch(21.88, 45.58, 318.23°)
OKLaboklab(34.13% 0.0831 -0.0853)
OKLCHoklch(34.13% 0.119 314.3)
XYZxyz(5.8361, 3.4817, 11.9175)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F62 #33621F
analogous
#2D1F62 #4E1F62 #621F54
triadic
#4E1F62 #624E1F #1F624E
tetradic
#4E1F62 #622D1F #33621F #1F5462
square
#4E1F62 #622D1F #33621F #1F5462
split-complementary
#4E1F62 #54621F #1F622D
monochromatic
#130717 #291034 #4E1F62 #732E90 #983CBF

Accessibility & contrast

On white

12.38
#4E1F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F62
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F62#FFFFFF#000000##FFFFFF
##4E1F621.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033264
Deuteranopia (green-blind)
#1C3660
Tritanopia (blue-blind)
#4C2C3D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1f62;
/* rgb */ color: rgb(78, 31, 98);
/* oklch */ color: oklch(34.1% 0.119 314.3);
Tailwind
colors: {
  custom: {
    50: '#825e8f',
    500: '#4e1f62',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f62;
$custom-light: #825e8f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f62",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 98
  },
  "hsl": {
    "h": 282.09,
    "s": 51.938,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34125,
    "c": 0.11913,
    "h": 314.3
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#4E1F62
secondary
#5E9746
accent
#DB4C77
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E1F62

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

Preview Lab → · Contrast checker → · Palette generator →

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