#4E226F#4E226F

#4E226F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.130 H 307.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4E226F
RGBrgb(78, 34, 111)
HSLhsl(274, 53%, 28%)
HSVhsv(274, 69%, 44%)
CMYKcmyk(29.7%, 69.4%, 0%, 56.5%)
CIE-LABlab(23.38, 35.60, -36.41)
CIE-LCHlch(23.38, 50.93, 314.36°)
OKLaboklab(35.5% 0.0784 -0.1031)
OKLCHoklch(35.5% 0.13 307.3)
XYZxyz(6.5826, 3.9115, 15.4441)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E226F #436F22
analogous
#28226F #4E226F #6F2269
triadic
#4E226F #6F4E22 #226F4E
tetradic
#4E226F #6F2822 #436F22 #22696F
square
#4E226F #6F2822 #436F22 #22696F
split-complementary
#4E226F #696F22 #226F28
monochromatic
#100717 #2D1440 #4E226F #6F309E #8F45C6

Accessibility & contrast

On white

11.78
#4E226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E226F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E226F#FFFFFF#000000##FFFFFF
##4E226F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#11386D
Tritanopia (blue-blind)
#493245
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e226f;
/* rgb */ color: rgb(78, 34, 111);
/* oklch */ color: oklch(35.5% 0.130 307.3);
Tailwind
colors: {
  custom: {
    50: '#836099',
    500: '#4e226f',
    950: '#000000',
  },
}
SCSS
$custom: #4e226f;
$custom-light: #836099;
$custom-dark: #000000;
JSON
{
  "hex": "#4e226f",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 274.286,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35501,
    "c": 0.12951,
    "h": 307.3
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#4E226F
secondary
#70A24A
accent
#DD4B8A
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E226F

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

Preview Lab → · Contrast checker → · Palette generator →

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