#4E2166#4E2166

#4E2166 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.7% C 0.121 H 311.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#4E2166
RGBrgb(78, 33, 102)
HSLhsl(279, 51%, 26%)
HSVhsv(279, 68%, 40%)
CMYKcmyk(23.5%, 67.6%, 0%, 60%)
CIE-LABlab(22.54, 33.89, -31.92)
CIE-LCHlch(22.54, 46.56, 316.71°)
OKLaboklab(34.69% 0.0803 -0.0899)
OKLCHoklch(34.69% 0.121 311.8)
XYZxyz(6.0836, 3.6669, 12.9551)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2166 #396621
analogous
#2C2166 #4E2166 #66215C
triadic
#4E2166 #664E21 #21664E
tetradic
#4E2166 #662C21 #396621 #215C66
square
#4E2166 #662C21 #396621 #215C66
split-complementary
#4E2166 #5C6621 #21662C
monochromatic
#120717 #2B1238 #4E2166 #713094 #9440C1

Accessibility & contrast

On white

12.11
#4E2166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E2166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2166
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2166#FFFFFF#000000##FFFFFF
##4E21661.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013468
Deuteranopia (green-blind)
#1B3764
Tritanopia (blue-blind)
#4B2E40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e2166;
/* rgb */ color: rgb(78, 33, 102);
/* oklch */ color: oklch(34.7% 0.121 311.8);
Tailwind
colors: {
  custom: {
    50: '#826092',
    500: '#4e2166',
    950: '#000000',
  },
}
SCSS
$custom: #4e2166;
$custom-light: #826092;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2166",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 102
  },
  "hsl": {
    "h": 279.13,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3469,
    "c": 0.12056,
    "h": 311.8
  },
  "luminance": 0.03667
}

Semantic roles & 50–950 ramp

primary
#4E2166
secondary
#659A49
accent
#DB4D7E
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E2166

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

Preview Lab → · Contrast checker → · Palette generator →

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