#4E2258#4E2258

#4E2258 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 33.9% C 0.103 H 319.9°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#4E2258
RGBrgb(78, 34, 88)
HSLhsl(289, 44%, 24%)
HSVhsv(289, 61%, 35%)
CMYKcmyk(11.4%, 61.4%, 0%, 65.5%)
CIE-LABlab(21.83, 30.04, -23.83)
CIE-LCHlch(21.83, 38.34, 321.58°)
OKLaboklab(33.88% 0.0787 -0.0663)
OKLCHoklch(33.88% 0.103 319.9)
XYZxyz(5.4751, 3.4686, 9.6117)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2258 #2C5822
analogous
#332258 #4E2258 #582247
triadic
#4E2258 #584E22 #22584E
tetradic
#4E2258 #583322 #2C5822 #224758
square
#4E2258 #583322 #2C5822 #224758
split-complementary
#4E2258 #475822 #225833
monochromatic
#140916 #27112C #4E2258 #753384 #9C44B0

Accessibility & contrast

On white

12.40
#4E2258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4E2258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2258
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2258#FFFFFF#000000##FFFFFF
##4E22581.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17315A
Deuteranopia (green-blind)
#263657
Tritanopia (blue-blind)
#4E2A39
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e2258;
/* rgb */ color: rgb(78, 34, 88);
/* oklch */ color: oklch(33.9% 0.103 319.9);
Tailwind
colors: {
  custom: {
    50: '#816087',
    500: '#4e2258',
    950: '#000000',
  },
}
SCSS
$custom: #4e2258;
$custom-light: #816087;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2258",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 88
  },
  "hsl": {
    "h": 288.889,
    "s": 44.262,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33883,
    "c": 0.10286,
    "h": 319.9
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#4E2258
secondary
#568C4A
accent
#D4546C
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2258

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

Preview Lab → · Contrast checker → · Palette generator →

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