#4E2176#4E2176

#4E2176 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.139 H 304.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#4E2176
RGBrgb(78, 33, 118)
HSLhsl(272, 56%, 30%)
HSVhsv(272, 72%, 46%)
CMYKcmyk(33.9%, 72%, 0%, 53.7%)
CIE-LABlab(23.72, 37.92, -40.35)
CIE-LCHlch(23.72, 55.37, 313.22°)
OKLaboklab(35.92% 0.0787 -0.1146)
OKLCHoklch(35.92% 0.139 304.5)
XYZxyz(6.9550, 4.0154, 17.5447)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2176 #497621
analogous
#242176 #4E2176 #762173
triadic
#4E2176 #764E21 #21764E
tetradic
#4E2176 #762421 #497621 #217376
square
#4E2176 #762421 #497621 #217376
split-complementary
#4E2176 #737621 #217624
monochromatic
#100718 #2E1446 #4E2176 #6E2EA6 #8D46CB

Accessibility & contrast

On white

11.65
#4E2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2176
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2176#FFFFFF#000000##FFFFFF
##4E21761.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#003874
Tritanopia (blue-blind)
#463449
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2176;
/* rgb */ color: rgb(78, 33, 118);
/* oklch */ color: oklch(35.9% 0.139 304.5);
Tailwind
colors: {
  custom: {
    50: '#83609e',
    500: '#4e2176',
    950: '#000000',
  },
}
SCSS
$custom: #4e2176;
$custom-light: #83609e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2176",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 271.765,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35917,
    "c": 0.13907,
    "h": 304.5
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#4E2176
secondary
#77A94A
accent
#E0488F
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2176

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

Preview Lab → · Contrast checker → · Palette generator →

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