#4E2255#4E2255

#4E2255 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.7% C 0.100 H 322.0°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#4E2255
RGBrgb(78, 34, 85)
HSLhsl(292, 43%, 23%)
HSVhsv(292, 60%, 33%)
CMYKcmyk(8.2%, 60%, 0%, 66.7%)
CIE-LABlab(21.65, 29.36, -22.11)
CIE-LCHlch(21.65, 36.76, 323.02°)
OKLaboklab(33.7% 0.0784 -0.0613)
OKLCHoklch(33.7% 0.1 322)
XYZxyz(5.3534, 3.4199, 8.9707)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2255 #295522
analogous
#342255 #4E2255 #552242
triadic
#4E2255 #554E22 #22554E
tetradic
#4E2255 #553422 #295522 #224255
square
#4E2255 #553422 #295522 #224255
split-complementary
#4E2255 #425522 #225534
monochromatic
#140916 #261129 #4E2255 #763381 #9E45AC

Accessibility & contrast

On white

12.47
#4E2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E2255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2255
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2255#FFFFFF#000000##FFFFFF
##4E22551.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193157
Deuteranopia (green-blind)
#283654
Tritanopia (blue-blind)
#4F2938
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e2255;
/* rgb */ color: rgb(78, 34, 85);
/* oklch */ color: oklch(33.7% 0.100 322.0);
Tailwind
colors: {
  custom: {
    50: '#816085',
    500: '#4e2255',
    950: '#000000',
  },
}
SCSS
$custom: #4e2255;
$custom-light: #816085;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2255",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 291.765,
    "s": 42.857,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33695,
    "c": 0.0995,
    "h": 322
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#4E2255
secondary
#52894A
accent
#D35566
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2255

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

Preview Lab → · Contrast checker → · Palette generator →

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