#4E255C#4E255C

#4E255C is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.6% C 0.102 H 316.8°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#4E255C
RGBrgb(78, 37, 92)
HSLhsl(285, 43%, 25%)
HSVhsv(285, 60%, 36%)
CMYKcmyk(15.2%, 59.8%, 0%, 63.9%)
CIE-LABlab(22.71, 29.26, -25.09)
CIE-LCHlch(22.71, 38.55, 319.39°)
OKLaboklab(34.6% 0.0745 -0.07)
OKLCHoklch(34.6% 0.102 316.8)
XYZxyz(5.7349, 3.7157, 10.5383)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E255C #335C25
analogous
#32255C #4E255C #5C254E
triadic
#4E255C #5C4E25 #255C4E
tetradic
#4E255C #5C3225 #335C25 #254E5C
square
#4E255C #5C3225 #335C25 #254E5C
split-complementary
#4E255C #4E5C25 #255C32
monochromatic
#130916 #291330 #4E255C #733788 #9848B3

Accessibility & contrast

On white

12.05
#4E255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E255C
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E255C#FFFFFF#000000##FFFFFF
##4E255C1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18345E
Deuteranopia (green-blind)
#26375B
Tritanopia (blue-blind)
#4D2E3C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e255c;
/* rgb */ color: rgb(78, 37, 92);
/* oklch */ color: oklch(34.6% 0.102 316.8);
Tailwind
colors: {
  custom: {
    50: '#81628a',
    500: '#4e255c',
    950: '#000000',
  },
}
SCSS
$custom: #4e255c;
$custom-light: #81628a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e255c",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 284.727,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34604,
    "c": 0.10217,
    "h": 316.8
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#4E255C
secondary
#5E8F4D
accent
#D25575
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0A050C
muted
#7C797D

Preview Lab

Preview with #4E255C

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

Preview Lab → · Contrast checker → · Palette generator →

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