#4E2172#4E2172

#4E2172 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.134 H 306.1°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#4E2172
RGBrgb(78, 33, 114)
HSLhsl(273, 55%, 29%)
HSVhsv(273, 71%, 45%)
CMYKcmyk(31.6%, 71.1%, 0%, 55.3%)
CIE-LABlab(23.41, 36.89, -38.28)
CIE-LCHlch(23.41, 53.16, 313.94°)
OKLaboklab(35.6% 0.0793 -0.1086)
OKLCHoklch(35.6% 0.134 306.1)
XYZxyz(6.7223, 3.9224, 16.3193)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2172 #457221
analogous
#262172 #4E2172 #72216E
triadic
#4E2172 #724E21 #21724E
tetradic
#4E2172 #722621 #457221 #216E72
square
#4E2172 #722621 #457221 #216E72
split-complementary
#4E2172 #6E7221 #217226
monochromatic
#100718 #2E1343 #4E2172 #6E2FA1 #8E44C9

Accessibility & contrast

On white

11.77
#4E2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2172
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2172#FFFFFF#000000##FFFFFF
##4E21721.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#093870
Tritanopia (blue-blind)
#483346
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2172;
/* rgb */ color: rgb(78, 33, 114);
/* oklch */ color: oklch(35.6% 0.134 306.1);
Tailwind
colors: {
  custom: {
    50: '#83609b',
    500: '#4e2172',
    950: '#000000',
  },
}
SCSS
$custom: #4e2172;
$custom-light: #83609b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2172",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 273.333,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35598,
    "c": 0.13445,
    "h": 306.1
  },
  "luminance": 0.03922
}

Semantic roles & 50–950 ramp

primary
#4E2172
secondary
#72A549
accent
#DE498C
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2172

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

Preview Lab → · Contrast checker → · Palette generator →

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