#4E2277#4E2277

#4E2277 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.139 H 303.9°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4E2277
RGBrgb(78, 34, 119)
HSLhsl(271, 56%, 30%)
HSVhsv(271, 71%, 47%)
CMYKcmyk(34.5%, 71.4%, 0%, 53.3%)
CIE-LABlab(23.99, 37.66, -40.56)
CIE-LCHlch(23.99, 55.35, 312.88°)
OKLaboklab(36.13% 0.0774 -0.1153)
OKLCHoklch(36.13% 0.139 303.9)
XYZxyz(7.0429, 4.0957, 17.8687)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2277 #4B7722
analogous
#232277 #4E2277 #772276
triadic
#4E2277 #774E22 #22774E
tetradic
#4E2277 #772322 #4B7722 #227677
square
#4E2277 #772322 #4B7722 #227677
split-complementary
#4E2277 #767722 #227723
monochromatic
#100718 #2F1447 #4E2277 #6D30A7 #8C49CB

Accessibility & contrast

On white

11.54
#4E2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2277
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2277#FFFFFF#000000##FFFFFF
##4E22771.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387A
Deuteranopia (green-blind)
#003975
Tritanopia (blue-blind)
#463549
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2277;
/* rgb */ color: rgb(78, 34, 119);
/* oklch */ color: oklch(36.1% 0.139 303.9);
Tailwind
colors: {
  custom: {
    50: '#83619f',
    500: '#4e2277',
    950: '#000000',
  },
}
SCSS
$custom: #4e2277;
$custom-light: #83619f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2277",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 271.059,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.3613,
    "c": 0.13886,
    "h": 303.9
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#4E2277
secondary
#79AA4B
accent
#DF4991
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2277

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

Preview Lab → · Contrast checker → · Palette generator →

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