#4E254F#4E254F

#4E254F is a dark, moderate purple. Relative luminance 0.035; OKLCH L 33.8% C 0.087 H 326.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4E254F
RGBrgb(78, 37, 79)
HSLhsl(299, 36%, 23%)
HSVhsv(299, 53%, 31%)
CMYKcmyk(1.3%, 53.2%, 0%, 69%)
CIE-LABlab(21.97, 26.32, -17.59)
CIE-LCHlch(21.97, 31.65, 326.25°)
OKLaboklab(33.82% 0.0727 -0.0483)
OKLCHoklch(33.82% 0.087 326.4)
XYZxyz(5.2146, 3.5076, 7.7980)
Luminance0.0351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E254F #264F25
analogous
#39254F #4E254F #4F253B
triadic
#4E254F #4F4E25 #254F4E
tetradic
#4E254F #4F3925 #264F25 #253B4F
square
#4E254F #4F3925 #264F25 #253B4F
split-complementary
#4E254F #3B4F25 #254F39
monochromatic
#150A15 #251125 #4E254F #773979 #A04CA2

Accessibility & contrast

On white

12.34
#4E254F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E254F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E254F
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E254F#FFFFFF#000000##FFFFFF
##4E254F1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213150
Deuteranopia (green-blind)
#2D364E
Tritanopia (blue-blind)
#502A36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e254f;
/* rgb */ color: rgb(78, 37, 79);
/* oklch */ color: oklch(33.8% 0.087 326.4);
Tailwind
colors: {
  custom: {
    50: '#816180',
    500: '#4e254f',
    950: '#000000',
  },
}
SCSS
$custom: #4e254f;
$custom-light: #816180;
$custom-dark: #000000;
JSON
{
  "hex": "#4e254f",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 79
  },
  "hsl": {
    "h": 298.571,
    "s": 36.207,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33822,
    "c": 0.08728,
    "h": 326.4
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#4E254F
secondary
#4F824E
accent
#CC5C5E
background
#F8F5F7
surface
#EFEAEE
border
#CAC6C9
text
#0A050A
muted
#7C797C

Preview Lab

Preview with #4E254F

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

Preview Lab → · Contrast checker → · Palette generator →

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