#4E225E#4E225E

#4E225E is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.3% C 0.110 H 316.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#4E225E
RGBrgb(78, 34, 94)
HSLhsl(284, 47%, 25%)
HSVhsv(284, 64%, 37%)
CMYKcmyk(17%, 63.8%, 0%, 63.1%)
CIE-LABlab(22.20, 31.43, -27.21)
CIE-LCHlch(22.20, 41.57, 319.12°)
OKLaboklab(34.28% 0.079 -0.0761)
OKLCHoklch(34.28% 0.11 316.1)
XYZxyz(5.7340, 3.5721, 10.9749)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E225E #325E22
analogous
#30225E #4E225E #5E2250
triadic
#4E225E #5E4E22 #225E4E
tetradic
#4E225E #5E3022 #325E22 #22505E
square
#4E225E #5E3022 #325E22 #22505E
split-complementary
#4E225E #505E22 #225E30
monochromatic
#130816 #291231 #4E225E #73328B #9943B8

Accessibility & contrast

On white

12.25
#4E225E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E225E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E225E
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E225E#FFFFFF#000000##FFFFFF
##4E225E1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113260
Deuteranopia (green-blind)
#22365C
Tritanopia (blue-blind)
#4D2C3C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e225e;
/* rgb */ color: rgb(78, 34, 94);
/* oklch */ color: oklch(34.3% 0.110 316.1);
Tailwind
colors: {
  custom: {
    50: '#82608c',
    500: '#4e225e',
    950: '#000000',
  },
}
SCSS
$custom: #4e225e;
$custom-light: #82608c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e225e",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 94
  },
  "hsl": {
    "h": 284,
    "s": 46.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34276,
    "c": 0.10971,
    "h": 316.1
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#4E225E
secondary
#5D924A
accent
#D75175
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E225E

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

Preview Lab → · Contrast checker → · Palette generator →

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