#4E255F#4E255F

#4E255F is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.8% C 0.106 H 314.9°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#4E255F
RGBrgb(78, 37, 95)
HSLhsl(282, 44%, 26%)
HSVhsv(282, 61%, 37%)
CMYKcmyk(17.9%, 61.1%, 0%, 62.7%)
CIE-LABlab(22.89, 29.98, -26.77)
CIE-LCHlch(22.89, 40.19, 318.24°)
OKLaboklab(34.8% 0.0747 -0.0749)
OKLCHoklch(34.8% 0.106 314.9)
XYZxyz(5.8687, 3.7692, 11.2426)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E255F #365F25
analogous
#31255F #4E255F #5F2553
triadic
#4E255F #5F4E25 #255F4E
tetradic
#4E255F #5F3125 #365F25 #25535F
square
#4E255F #5F3125 #365F25 #25535F
split-complementary
#4E255F #535F25 #255F31
monochromatic
#120916 #2A1433 #4E255F #72368B #9647B7

Accessibility & contrast

On white

11.97
#4E255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4E255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E255F
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E255F#FFFFFF#000000##FFFFFF
##4E255F1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153461
Deuteranopia (green-blind)
#24385E
Tritanopia (blue-blind)
#4D2F3E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e255f;
/* rgb */ color: rgb(78, 37, 95);
/* oklch */ color: oklch(34.8% 0.106 314.9);
Tailwind
colors: {
  custom: {
    50: '#81628d',
    500: '#4e255f',
    950: '#000000',
  },
}
SCSS
$custom: #4e255f;
$custom-light: #81628d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e255f",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 282.414,
    "s": 43.939,
    "l": 25.882
  },
  "oklch": {
    "l": 0.348,
    "c": 0.10573,
    "h": 314.9
  },
  "luminance": 0.03769
}

Semantic roles & 50–950 ramp

primary
#4E255F
secondary
#62924D
accent
#D4547A
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0A050C
muted
#7C797D

Preview Lab

Preview with #4E255F

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

Preview Lab → · Contrast checker → · Palette generator →

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