#4E2173#4E2173

#4E2173 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.136 H 305.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#4E2173
RGBrgb(78, 33, 115)
HSLhsl(273, 55%, 29%)
HSVhsv(273, 71%, 45%)
CMYKcmyk(32.2%, 71.3%, 0%, 54.9%)
CIE-LABlab(23.49, 37.15, -38.80)
CIE-LCHlch(23.49, 53.72, 313.75°)
OKLaboklab(35.68% 0.0792 -0.1101)
OKLCHoklch(35.68% 0.136 305.7)
XYZxyz(6.7796, 3.9453, 16.6207)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2173 #467321
analogous
#252173 #4E2173 #73216F
triadic
#4E2173 #734E21 #21734E
tetradic
#4E2173 #732521 #467321 #216F73
square
#4E2173 #732521 #467321 #216F73
split-complementary
#4E2173 #6F7321 #217325
monochromatic
#100718 #2E1343 #4E2173 #6E2FA3 #8E45CA

Accessibility & contrast

On white

11.74
#4E2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2173
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2173#FFFFFF#000000##FFFFFF
##4E21731.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#073871
Tritanopia (blue-blind)
#473347
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2173;
/* rgb */ color: rgb(78, 33, 115);
/* oklch */ color: oklch(35.7% 0.136 305.7);
Tailwind
colors: {
  custom: {
    50: '#83609c',
    500: '#4e2173',
    950: '#000000',
  },
}
SCSS
$custom: #4e2173;
$custom-light: #83609c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2173",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 272.927,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35677,
    "c": 0.13561,
    "h": 305.7
  },
  "luminance": 0.03945
}

Semantic roles & 50–950 ramp

primary
#4E2173
secondary
#73A649
accent
#DF498D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2173

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

Preview Lab → · Contrast checker → · Palette generator →

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