#4E1254#4E1254

#4E1254 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.123 H 324.0°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#4E1254
RGBrgb(78, 18, 84)
HSLhsl(295, 65%, 20%)
HSVhsv(295, 79%, 33%)
CMYKcmyk(7.1%, 78.6%, 0%, 67.1%)
CIE-LABlab(18.77, 36.96, -26.01)
CIE-LCHlch(18.77, 45.20, 324.86°)
OKLaboklab(31.59% 0.0997 -0.0725)
OKLCHoklch(31.59% 0.123 324)
XYZxyz(4.9583, 2.6927, 8.6444)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1254 #185412
analogous
#2D1254 #4E1254 #541239
triadic
#4E1254 #544E12 #12544E
tetradic
#4E1254 #542D12 #185412 #123954
square
#4E1254 #542D12 #185412 #123954
split-complementary
#4E1254 #395412 #12542D
monochromatic
#170519 #1F0722 #4E1254 #7D1D86 #AC28B9

Accessibility & contrast

On white

13.65
#4E1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4E1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1254
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1254#FFFFFF#000000##FFFFFF
##4E12541.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#1E3052
Tritanopia (blue-blind)
#501E32
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4e1254;
/* rgb */ color: rgb(78, 18, 84);
/* oklch */ color: oklch(31.6% 0.123 324.0);
Tailwind
colors: {
  custom: {
    50: '#825784',
    500: '#4e1254',
    950: '#000000',
  },
}
SCSS
$custom: #4e1254;
$custom-light: #825784;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1254",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 294.545,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.31587,
    "c": 0.12327,
    "h": 324
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#4E1254
secondary
#3D8D35
accent
#E8404F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4E1254

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

Preview Lab → · Contrast checker → · Palette generator →

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