#4E1F63#4E1F63

#4E1F63 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.2% C 0.120 H 313.7°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#4E1F63
RGBrgb(78, 31, 99)
HSLhsl(281, 52%, 25%)
HSVhsv(281, 69%, 39%)
CMYKcmyk(21.2%, 68.7%, 0%, 61.2%)
CIE-LABlab(21.95, 34.23, -30.91)
CIE-LCHlch(21.95, 46.12, 317.92°)
OKLaboklab(34.2% 0.0831 -0.0869)
OKLCHoklch(34.2% 0.12 313.7)
XYZxyz(5.8836, 3.5007, 12.1677)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F63 #34631F
analogous
#2C1F63 #4E1F63 #631F56
triadic
#4E1F63 #634E1F #1F634E
tetradic
#4E1F63 #632C1F #34631F #1F5663
square
#4E1F63 #632C1F #34631F #1F5663
split-complementary
#4E1F63 #56631F #1F632C
monochromatic
#120717 #291034 #4E1F63 #732E92 #973CC0

Accessibility & contrast

On white

12.35
#4E1F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1F63
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F63#FFFFFF#000000##FFFFFF
##4E1F631.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023265
Deuteranopia (green-blind)
#1C3661
Tritanopia (blue-blind)
#4C2C3E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1f63;
/* rgb */ color: rgb(78, 31, 99);
/* oklch */ color: oklch(34.2% 0.120 313.7);
Tailwind
colors: {
  custom: {
    50: '#825e90',
    500: '#4e1f63',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f63;
$custom-light: #825e90;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f63",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 99
  },
  "hsl": {
    "h": 281.471,
    "s": 52.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34197,
    "c": 0.12025,
    "h": 313.7
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#4E1F63
secondary
#5F9846
accent
#DC4C78
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E1F63

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

Preview Lab → · Contrast checker → · Palette generator →

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