#4E1255#4E1255

#4E1255 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.124 H 323.3°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#4E1255
RGBrgb(78, 18, 85)
HSLhsl(294, 65%, 20%)
HSVhsv(294, 79%, 33%)
CMYKcmyk(8.2%, 78.8%, 0%, 66.7%)
CIE-LABlab(18.84, 37.16, -26.58)
CIE-LCHlch(18.84, 45.69, 324.43°)
OKLaboklab(31.66% 0.0996 -0.0742)
OKLCHoklch(31.66% 0.124 323.3)
XYZxyz(4.9977, 2.7085, 8.8521)
Luminance0.0271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1255 #195512
analogous
#2C1255 #4E1255 #55123B
triadic
#4E1255 #554E12 #12554E
tetradic
#4E1255 #552C12 #195512 #123B55
square
#4E1255 #552C12 #195512 #123B55
split-complementary
#4E1255 #3B5512 #12552C
monochromatic
#170519 #200722 #4E1255 #7C1D88 #AB27BA

Accessibility & contrast

On white

13.62
#4E1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1255
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1255#FFFFFF#000000##FFFFFF
##4E12551.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#1D3053
Tritanopia (blue-blind)
#4F1E32
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4e1255;
/* rgb */ color: rgb(78, 18, 85);
/* oklch */ color: oklch(31.7% 0.124 323.3);
Tailwind
colors: {
  custom: {
    50: '#825785',
    500: '#4e1255',
    950: '#000000',
  },
}
SCSS
$custom: #4e1255;
$custom-light: #825785;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1255",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 293.731,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31657,
    "c": 0.12421,
    "h": 323.3
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#4E1255
secondary
#3E8E35
accent
#E84051
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4E1255

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

Preview Lab → · Contrast checker → · Palette generator →

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