#4E226B#4E226B

#4E226B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.125 H 309.1°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#4E226B
RGBrgb(78, 34, 107)
HSLhsl(276, 52%, 28%)
HSVhsv(276, 68%, 42%)
CMYKcmyk(27.1%, 68.2%, 0%, 58%)
CIE-LABlab(23.09, 34.59, -34.30)
CIE-LCHlch(23.09, 48.71, 315.25°)
OKLaboklab(35.2% 0.0787 -0.0969)
OKLCHoklch(35.2% 0.125 309.1)
XYZxyz(6.3672, 3.8254, 14.3100)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E226B #3F6B22
analogous
#29226B #4E226B #6B2264
triadic
#4E226B #6B4E22 #226B4E
tetradic
#4E226B #6B2922 #3F6B22 #22646B
square
#4E226B #6B2922 #3F6B22 #22646B
split-complementary
#4E226B #646B22 #226B29
monochromatic
#110717 #2C133D #4E226B #703199 #9144C4

Accessibility & contrast

On white

11.90
#4E226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E226B
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E226B#FFFFFF#000000##FFFFFF
##4E226B1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#163869
Tritanopia (blue-blind)
#4A3143
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e226b;
/* rgb */ color: rgb(78, 34, 107);
/* oklch */ color: oklch(35.2% 0.125 309.1);
Tailwind
colors: {
  custom: {
    50: '#826096',
    500: '#4e226b',
    950: '#000000',
  },
}
SCSS
$custom: #4e226b;
$custom-light: #826096;
$custom-dark: #000000;
JSON
{
  "hex": "#4e226b",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 276.164,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35198,
    "c": 0.12484,
    "h": 309.1
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#4E226B
secondary
#6C9F4A
accent
#DB4D85
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E226B

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

Preview Lab → · Contrast checker → · Palette generator →

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