#4E226D#4E226D

#4E226D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.3% C 0.127 H 308.2°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4E226D
RGBrgb(78, 34, 109)
HSLhsl(275, 52%, 28%)
HSVhsv(275, 69%, 43%)
CMYKcmyk(28.4%, 68.8%, 0%, 57.3%)
CIE-LABlab(23.23, 35.10, -35.36)
CIE-LCHlch(23.23, 49.82, 314.79°)
OKLaboklab(35.35% 0.0786 -0.1)
OKLCHoklch(35.35% 0.127 308.2)
XYZxyz(6.4737, 3.8680, 14.8706)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E226D #416D22
analogous
#28226D #4E226D #6D2266
triadic
#4E226D #6D4E22 #226D4E
tetradic
#4E226D #6D2822 #416D22 #22666D
square
#4E226D #6D2822 #416D22 #22666D
split-complementary
#4E226D #666D22 #226D28
monochromatic
#110717 #2D133E #4E226D #6F319C #9045C5

Accessibility & contrast

On white

11.84
#4E226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4E226D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E226D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E226D#FFFFFF#000000##FFFFFF
##4E226D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366F
Deuteranopia (green-blind)
#14386B
Tritanopia (blue-blind)
#493244
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e226d;
/* rgb */ color: rgb(78, 34, 109);
/* oklch */ color: oklch(35.3% 0.127 308.2);
Tailwind
colors: {
  custom: {
    50: '#836097',
    500: '#4e226d',
    950: '#000000',
  },
}
SCSS
$custom: #4e226d;
$custom-light: #836097;
$custom-dark: #000000;
JSON
{
  "hex": "#4e226d",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 275.2,
    "s": 52.448,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35349,
    "c": 0.12717,
    "h": 308.2
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#4E226D
secondary
#6EA14A
accent
#DC4C87
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E226D

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

Preview Lab → · Contrast checker → · Palette generator →

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