#4E1751#4E1751

#4E1751 is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.9% C 0.114 H 325.7°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#4E1751
RGBrgb(78, 23, 81)
HSLhsl(297, 56%, 20%)
HSVhsv(297, 72%, 32%)
CMYKcmyk(3.7%, 71.6%, 0%, 68.2%)
CIE-LABlab(19.34, 34.20, -23.08)
CIE-LCHlch(19.34, 41.26, 325.98°)
OKLaboklab(31.93% 0.0938 -0.064)
OKLCHoklch(31.93% 0.114 325.7)
XYZxyz(4.9334, 2.8269, 8.0688)
Luminance0.0283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1751 #1A5117
analogous
#311751 #4E1751 #511737
triadic
#4E1751 #514E17 #17514E
tetradic
#4E1751 #513117 #1A5117 #173751
square
#4E1751 #513117 #1A5117 #173751
split-complementary
#4E1751 #375117 #175131
monochromatic
#170718 #200921 #4E1751 #7C2581 #AA32B0

Accessibility & contrast

On white

13.42
#4E1751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4E1751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1751
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1751#FFFFFF#000000##FFFFFF
##4E17511.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2A53
Deuteranopia (green-blind)
#23314F
Tritanopia (blue-blind)
#502031
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4e1751;
/* rgb */ color: rgb(78, 23, 81);
/* oklch */ color: oklch(31.9% 0.114 325.7);
Tailwind
colors: {
  custom: {
    50: '#825982',
    500: '#4e1751',
    950: '#000000',
  },
}
SCSS
$custom: #4e1751;
$custom-light: #825982;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1751",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 81
  },
  "hsl": {
    "h": 296.897,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31932,
    "c": 0.11353,
    "h": 325.7
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#4E1751
secondary
#40883C
accent
#DF4950
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E1751

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

Preview Lab → · Contrast checker → · Palette generator →

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