#4E254E#4E254E

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

Color values

HEX#4E254E
RGBrgb(78, 37, 78)
HSLhsl(300, 36%, 23%)
HSVhsv(300, 53%, 31%)
CMYKcmyk(0%, 52.6%, 0%, 69.4%)
CIE-LABlab(21.92, 26.10, -17.00)
CIE-LCHlch(21.92, 31.15, 326.93°)
OKLaboklab(33.77% 0.0725 -0.0466)
OKLCHoklch(33.77% 0.086 327.3)
XYZxyz(5.1785, 3.4932, 7.6077)
Luminance0.0349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E254E #254E25
analogous
#39254E #4E254E #4E2539
triadic
#4E254E #4E4E25 #254E4E
tetradic
#4E254E #4E3925 #254E25 #25394E
square
#4E254E #4E3925 #254E25 #25394E
split-complementary
#4E254E #394E25 #254E39
monochromatic
#150A15 #241124 #4E254E #783978 #A14CA1

Accessibility & contrast

On white

12.36
#4E254E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E254E
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E254E#FFFFFF#000000##FFFFFF
##4E254E1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21314F
Deuteranopia (green-blind)
#2D364D
Tritanopia (blue-blind)
#502936
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e254e;
/* rgb */ color: rgb(78, 37, 78);
/* oklch */ color: oklch(33.8% 0.086 327.3);
Tailwind
colors: {
  custom: {
    50: '#81617f',
    500: '#4e254e',
    950: '#000000',
  },
}
SCSS
$custom: #4e254e;
$custom-light: #81617f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e254e",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 78
  },
  "hsl": {
    "h": 300,
    "s": 35.652,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33766,
    "c": 0.08618,
    "h": 327.3
  },
  "luminance": 0.03493
}

Semantic roles & 50–950 ramp

primary
#4E254E
secondary
#4E814E
accent
#CC5C5C
background
#F8F5F7
surface
#EFEAEE
border
#CAC6C9
text
#0A050A
muted
#7C797C

Preview Lab

Preview with #4E254E

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

Preview Lab → · Contrast checker → · Palette generator →

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