#4E255A#4E255A

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

Color values

HEX#4E255A
RGBrgb(78, 37, 90)
HSLhsl(286, 42%, 25%)
HSVhsv(286, 59%, 35%)
CMYKcmyk(13.3%, 58.9%, 0%, 64.7%)
CIE-LABlab(22.59, 28.79, -23.96)
CIE-LCHlch(22.59, 37.46, 320.24°)
OKLaboklab(34.48% 0.0743 -0.0667)
OKLCHoklch(34.48% 0.1 318.1)
XYZxyz(5.6487, 3.6812, 10.0839)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E255A #315A25
analogous
#34255A #4E255A #5A254C
triadic
#4E255A #5A4E25 #255A4E
tetradic
#4E255A #5A3425 #315A25 #254C5A
square
#4E255A #5A3425 #315A25 #254C5A
split-complementary
#4E255A #4C5A25 #255A34
monochromatic
#130916 #28132F #4E255A #743785 #9949B1

Accessibility & contrast

On white

12.10
#4E255A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E255A
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E255A#FFFFFF#000000##FFFFFF
##4E255A1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A335C
Deuteranopia (green-blind)
#273759
Tritanopia (blue-blind)
#4E2D3B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e255a;
/* rgb */ color: rgb(78, 37, 90);
/* oklch */ color: oklch(34.5% 0.100 318.1);
Tailwind
colors: {
  custom: {
    50: '#816289',
    500: '#4e255a',
    950: '#000000',
  },
}
SCSS
$custom: #4e255a;
$custom-light: #816289;
$custom-dark: #000000;
JSON
{
  "hex": "#4e255a",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 90
  },
  "hsl": {
    "h": 286.415,
    "s": 41.732,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34477,
    "c": 0.09981,
    "h": 318.1
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#4E255A
secondary
#5C8D4D
accent
#D25672
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E255A

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

Preview Lab → · Contrast checker → · Palette generator →

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