#4E225F#4E225F

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

Color values

HEX#4E225F
RGBrgb(78, 34, 95)
HSLhsl(283, 47%, 25%)
HSVhsv(283, 64%, 37%)
CMYKcmyk(17.9%, 64.2%, 0%, 62.7%)
CIE-LABlab(22.27, 31.67, -27.77)
CIE-LCHlch(22.27, 42.12, 318.75°)
OKLaboklab(34.34% 0.079 -0.0777)
OKLCHoklch(34.34% 0.111 315.5)
XYZxyz(5.7791, 3.5902, 11.2128)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E225F #335F22
analogous
#30225F #4E225F #5F2251
triadic
#4E225F #5F4E22 #225F4E
tetradic
#4E225F #5F3022 #335F22 #22515F
square
#4E225F #5F3022 #335F22 #22515F
split-complementary
#4E225F #515F22 #225F30
monochromatic
#130817 #291232 #4E225F #73328C #9842B9

Accessibility & contrast

On white

12.22
#4E225F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E225F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E225F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E225F#FFFFFF#000000##FFFFFF
##4E225F1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103361
Deuteranopia (green-blind)
#22365D
Tritanopia (blue-blind)
#4D2D3D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e225f;
/* rgb */ color: rgb(78, 34, 95);
/* oklch */ color: oklch(34.3% 0.111 315.5);
Tailwind
colors: {
  custom: {
    50: '#82608d',
    500: '#4e225f',
    950: '#000000',
  },
}
SCSS
$custom: #4e225f;
$custom-light: #82608d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e225f",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 95
  },
  "hsl": {
    "h": 283.279,
    "s": 47.287,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34343,
    "c": 0.11086,
    "h": 315.5
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#4E225F
secondary
#5E934A
accent
#D75176
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E225F

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

Preview Lab → · Contrast checker → · Palette generator →

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