#4E1852#4E1852

#4E1852 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.1% C 0.113 H 324.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#4E1852
RGBrgb(78, 24, 82)
HSLhsl(296, 55%, 21%)
HSVhsv(296, 71%, 32%)
CMYKcmyk(4.9%, 70.7%, 0%, 67.8%)
CIE-LABlab(19.57, 33.93, -23.39)
CIE-LCHlch(19.57, 41.21, 325.42°)
OKLaboklab(32.12% 0.0925 -0.0649)
OKLCHoklch(32.12% 0.113 324.9)
XYZxyz(4.9914, 2.8825, 8.2745)
Luminance0.0288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1852 #1C5218
analogous
#311852 #4E1852 #521839
triadic
#4E1852 #524E18 #18524E
tetradic
#4E1852 #523118 #1C5218 #183952
square
#4E1852 #523118 #1C5218 #183952
split-complementary
#4E1852 #395218 #185231
monochromatic
#170718 #210A23 #4E1852 #7B2681 #A834B1

Accessibility & contrast

On white

13.32
#4E1852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4E1852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1852
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1852#FFFFFF#000000##FFFFFF
##4E18521.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B54
Deuteranopia (green-blind)
#233250
Tritanopia (blue-blind)
#502132
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4e1852;
/* rgb */ color: rgb(78, 24, 82);
/* oklch */ color: oklch(32.1% 0.113 324.9);
Tailwind
colors: {
  custom: {
    50: '#825a83',
    500: '#4e1852',
    950: '#000000',
  },
}
SCSS
$custom: #4e1852;
$custom-light: #825a83;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1852",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 295.862,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32118,
    "c": 0.11301,
    "h": 324.9
  },
  "luminance": 0.02882
}

Semantic roles & 50–950 ramp

primary
#4E1852
secondary
#42893D
accent
#DE4A54
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E1852

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

Preview Lab → · Contrast checker → · Palette generator →

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