#4E226E#4E226E

#4E226E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.128 H 307.7°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4E226E
RGBrgb(78, 34, 110)
HSLhsl(275, 53%, 28%)
HSVhsv(275, 69%, 43%)
CMYKcmyk(29.1%, 69.1%, 0%, 56.9%)
CIE-LABlab(23.30, 35.35, -35.89)
CIE-LCHlch(23.30, 50.37, 314.57°)
OKLaboklab(35.42% 0.0785 -0.1015)
OKLCHoklch(35.42% 0.128 307.7)
XYZxyz(6.5278, 3.8896, 15.1557)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E226E #426E22
analogous
#28226E #4E226E #6E2268
triadic
#4E226E #6E4E22 #226E4E
tetradic
#4E226E #6E2822 #426E22 #22686E
square
#4E226E #6E2822 #426E22 #22686E
split-complementary
#4E226E #686E22 #226E28
monochromatic
#110717 #2D143F #4E226E #6F309D #8F45C5

Accessibility & contrast

On white

11.81
#4E226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E226E
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E226E#FFFFFF#000000##FFFFFF
##4E226E1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#12386C
Tritanopia (blue-blind)
#493245
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e226e;
/* rgb */ color: rgb(78, 34, 110);
/* oklch */ color: oklch(35.4% 0.128 307.7);
Tailwind
colors: {
  custom: {
    50: '#836098',
    500: '#4e226e',
    950: '#000000',
  },
}
SCSS
$custom: #4e226e;
$custom-light: #836098;
$custom-dark: #000000;
JSON
{
  "hex": "#4e226e",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 274.737,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35424,
    "c": 0.12834,
    "h": 307.7
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#4E226E
secondary
#6FA14A
accent
#DC4C88
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E226E

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

Preview Lab → · Contrast checker → · Palette generator →

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