#4E1767#4E1767

#4E1767 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.136 H 312.8°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#4E1767
RGBrgb(78, 23, 103)
HSLhsl(281, 63%, 25%)
HSVhsv(281, 78%, 40%)
CMYKcmyk(24.3%, 77.7%, 0%, 59.6%)
CIE-LABlab(20.87, 38.99, -35.26)
CIE-LCHlch(20.87, 52.57, 317.88°)
OKLaboklab(33.52% 0.0922 -0.0996)
OKLCHoklch(33.52% 0.136 312.8)
XYZxyz(5.8960, 3.2119, 13.1387)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1767 #306717
analogous
#261767 #4E1767 #671758
triadic
#4E1767 #674E17 #17674E
tetradic
#4E1767 #672617 #306717 #175867
square
#4E1767 #672617 #306717 #175867
split-complementary
#4E1767 #586717 #176726
monochromatic
#130619 #280C35 #4E1767 #742299 #9A2DCB

Accessibility & contrast

On white

12.79
#4E1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4E1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1767
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1767#FFFFFF#000000##FFFFFF
##4E17671.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F69
Deuteranopia (green-blind)
#0E3365
Tritanopia (blue-blind)
#4B293E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1767;
/* rgb */ color: rgb(78, 23, 103);
/* oklch */ color: oklch(33.5% 0.136 312.8);
Tailwind
colors: {
  custom: {
    50: '#835a93',
    500: '#4e1767',
    950: '#000000',
  },
}
SCSS
$custom: #4e1767;
$custom-light: #835a93;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1767",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 281.25,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33522,
    "c": 0.13577,
    "h": 312.8
  },
  "luminance": 0.03212
}

Semantic roles & 50–950 ramp

primary
#4E1767
secondary
#5B9D3D
accent
#E74175
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1767

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

Preview Lab → · Contrast checker → · Palette generator →

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