#4E1761#4E1761

#4E1761 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.130 H 315.9°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#4E1761
RGBrgb(78, 23, 97)
HSLhsl(285, 62%, 24%)
HSVhsv(285, 76%, 38%)
CMYKcmyk(19.6%, 76.3%, 0%, 62%)
CIE-LABlab(20.42, 37.63, -32.04)
CIE-LCHlch(20.42, 49.42, 319.59°)
OKLaboklab(33.06% 0.0931 -0.0902)
OKLCHoklch(33.06% 0.13 315.9)
XYZxyz(5.6056, 3.0958, 11.6092)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1761 #2A6117
analogous
#291761 #4E1761 #61174F
triadic
#4E1761 #614E17 #17614E
tetradic
#4E1761 #612917 #2A6117 #174F61
square
#4E1761 #612917 #2A6117 #174F61
split-complementary
#4E1761 #4F6117 #176129
monochromatic
#140619 #260B30 #4E1761 #762392 #9E2EC4

Accessibility & contrast

On white

12.97
#4E1761 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4E1761 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1761
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1761#FFFFFF#000000##FFFFFF
##4E17611.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E63
Deuteranopia (green-blind)
#16335F
Tritanopia (blue-blind)
#4D263A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1761;
/* rgb */ color: rgb(78, 23, 97);
/* oklch */ color: oklch(33.1% 0.130 315.9);
Tailwind
colors: {
  custom: {
    50: '#825a8e',
    500: '#4e1761',
    950: '#000000',
  },
}
SCSS
$custom: #4e1761;
$custom-light: #825a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1761",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 97
  },
  "hsl": {
    "h": 284.595,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33059,
    "c": 0.12959,
    "h": 315.9
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#4E1761
secondary
#54983C
accent
#E5436D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1761

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

Preview Lab → · Contrast checker → · Palette generator →

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