#4E228D#4E228D

#4E228D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.164 H 296.4°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#4E228D
RGBrgb(78, 34, 141)
HSLhsl(265, 61%, 34%)
HSVhsv(265, 76%, 55%)
CMYKcmyk(44.7%, 75.9%, 0%, 44.7%)
CIE-LABlab(25.82, 43.50, -51.41)
CIE-LCHlch(25.82, 67.35, 310.24°)
OKLaboklab(38.01% 0.073 -0.1472)
OKLCHoklch(38.01% 0.164 296.4)
XYZxyz(8.5204, 4.6867, 25.6498)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E228D #618D22
analogous
#222C8D #4E228D #84228D
triadic
#4E228D #8D4E22 #228D4E
tetradic
#4E228D #8D222C #618D22 #228D84
square
#4E228D #8D222C #618D22 #228D84
split-complementary
#4E228D #8D8422 #2C8D22
monochromatic
#170A2A #33165C #4E228D #692EBE #8954D6

Accessibility & contrast

On white

10.84
#4E228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E228D
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E228D#FFFFFF#000000##FFFFFF
##4E228D1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#3D3E56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e228d;
/* rgb */ color: rgb(78, 34, 141);
/* oklch */ color: oklch(38.0% 0.164 296.4);
Tailwind
colors: {
  custom: {
    50: '#8662af',
    500: '#4e228d',
    950: '#000000',
  },
}
SCSS
$custom: #4e228d;
$custom-light: #8662af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e228d",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 264.673,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38007,
    "c": 0.16428,
    "h": 296.4
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#4E228D
secondary
#8FB951
accent
#E444A2
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E228D

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

Preview Lab → · Contrast checker → · Palette generator →

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