#4E226A#4E226A

#4E226A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.124 H 309.6°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#4E226A
RGBrgb(78, 34, 106)
HSLhsl(277, 51%, 27%)
HSVhsv(277, 68%, 42%)
CMYKcmyk(26.4%, 67.9%, 0%, 58.4%)
CIE-LABlab(23.01, 34.34, -33.76)
CIE-LCHlch(23.01, 48.16, 315.49°)
OKLaboklab(35.12% 0.0788 -0.0953)
OKLCHoklch(35.12% 0.124 309.6)
XYZxyz(6.3149, 3.8045, 14.0345)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E226A #3E6A22
analogous
#2A226A #4E226A #6A2262
triadic
#4E226A #6A4E22 #226A4E
tetradic
#4E226A #6A2A22 #3E6A22 #22626A
square
#4E226A #6A2A22 #3E6A22 #22626A
split-complementary
#4E226A #626A22 #226A2A
monochromatic
#110717 #2C133C #4E226A #703198 #9144C3

Accessibility & contrast

On white

11.93
#4E226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4E226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E226A
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E226A#FFFFFF#000000##FFFFFF
##4E226A1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#183868
Tritanopia (blue-blind)
#4A3142
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e226a;
/* rgb */ color: rgb(78, 34, 106);
/* oklch */ color: oklch(35.1% 0.124 309.6);
Tailwind
colors: {
  custom: {
    50: '#826095',
    500: '#4e226a',
    950: '#000000',
  },
}
SCSS
$custom: #4e226a;
$custom-light: #826095;
$custom-dark: #000000;
JSON
{
  "hex": "#4e226a",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 276.667,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35124,
    "c": 0.12367,
    "h": 309.6
  },
  "luminance": 0.03804
}

Semantic roles & 50–950 ramp

primary
#4E226A
secondary
#6B9E4A
accent
#DB4D84
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E226A

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

Preview Lab → · Contrast checker → · Palette generator →

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