#4E226C#4E226C

#4E226C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.126 H 308.6°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#4E226C
RGBrgb(78, 34, 108)
HSLhsl(276, 52%, 28%)
HSVhsv(276, 69%, 42%)
CMYKcmyk(27.8%, 68.5%, 0%, 57.6%)
CIE-LABlab(23.16, 34.84, -34.83)
CIE-LCHlch(23.16, 49.27, 315.01°)
OKLaboklab(35.27% 0.0787 -0.0984)
OKLCHoklch(35.27% 0.126 308.6)
XYZxyz(6.4201, 3.8466, 14.5887)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E226C #406C22
analogous
#29226C #4E226C #6C2265
triadic
#4E226C #6C4E22 #226C4E
tetradic
#4E226C #6C2922 #406C22 #22656C
square
#4E226C #6C2922 #406C22 #22656C
split-complementary
#4E226C #656C22 #226C29
monochromatic
#110717 #2C133D #4E226C #70319B #9044C4

Accessibility & contrast

On white

11.87
#4E226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E226C
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E226C#FFFFFF#000000##FFFFFF
##4E226C1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356E
Deuteranopia (green-blind)
#15386A
Tritanopia (blue-blind)
#4A3144
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e226c;
/* rgb */ color: rgb(78, 34, 108);
/* oklch */ color: oklch(35.3% 0.126 308.6);
Tailwind
colors: {
  custom: {
    50: '#826097',
    500: '#4e226c',
    950: '#000000',
  },
}
SCSS
$custom: #4e226c;
$custom-light: #826097;
$custom-dark: #000000;
JSON
{
  "hex": "#4e226c",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 275.676,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35273,
    "c": 0.12601,
    "h": 308.6
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#4E226C
secondary
#6DA04A
accent
#DC4C86
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E226C

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

Preview Lab → · Contrast checker → · Palette generator →

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