#4E255B#4E255B

#4E255B is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.5% C 0.101 H 317.4°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#4E255B
RGBrgb(78, 37, 91)
HSLhsl(286, 42%, 25%)
HSVhsv(286, 59%, 36%)
CMYKcmyk(14.3%, 59.3%, 0%, 64.3%)
CIE-LABlab(22.65, 29.03, -24.52)
CIE-LCHlch(22.65, 38.00, 319.81°)
OKLaboklab(34.54% 0.0744 -0.0683)
OKLCHoklch(34.54% 0.101 317.4)
XYZxyz(5.6915, 3.6984, 10.3096)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E255B #325B25
analogous
#33255B #4E255B #5B254D
triadic
#4E255B #5B4E25 #255B4E
tetradic
#4E255B #5B3325 #325B25 #254D5B
square
#4E255B #5B3325 #325B25 #254D5B
split-complementary
#4E255B #4D5B25 #255B33
monochromatic
#130916 #29132F #4E255B #733787 #9948B2

Accessibility & contrast

On white

12.07
#4E255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E255B
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E255B#FFFFFF#000000##FFFFFF
##4E255B1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19335D
Deuteranopia (green-blind)
#27375A
Tritanopia (blue-blind)
#4E2D3C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e255b;
/* rgb */ color: rgb(78, 37, 91);
/* oklch */ color: oklch(34.5% 0.101 317.4);
Tailwind
colors: {
  custom: {
    50: '#81628a',
    500: '#4e255b',
    950: '#000000',
  },
}
SCSS
$custom: #4e255b;
$custom-light: #81628a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e255b",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 285.556,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34541,
    "c": 0.10099,
    "h": 317.4
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#4E255B
secondary
#5D8E4D
accent
#D25674
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E255B

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

Preview Lab → · Contrast checker → · Palette generator →

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