#4E2272#4E2272

#4E2272 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.133 H 305.9°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#4E2272
RGBrgb(78, 34, 114)
HSLhsl(273, 54%, 29%)
HSVhsv(273, 70%, 45%)
CMYKcmyk(31.6%, 70.2%, 0%, 55.3%)
CIE-LABlab(23.60, 36.37, -37.98)
CIE-LCHlch(23.60, 52.59, 313.76°)
OKLaboklab(35.73% 0.0781 -0.1077)
OKLCHoklch(35.73% 0.133 305.9)
XYZxyz(6.7505, 3.9787, 16.3287)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2272 #467222
analogous
#262272 #4E2272 #72226E
triadic
#4E2272 #724E22 #22724E
tetradic
#4E2272 #722622 #467222 #226E72
square
#4E2272 #722622 #467222 #226E72
split-complementary
#4E2272 #6E7222 #227226
monochromatic
#100718 #2E1443 #4E2272 #6E30A1 #8E46C8

Accessibility & contrast

On white

11.69
#4E2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2272
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2272#FFFFFF#000000##FFFFFF
##4E22721.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#0B3870
Tritanopia (blue-blind)
#483447
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2272;
/* rgb */ color: rgb(78, 34, 114);
/* oklch */ color: oklch(35.7% 0.133 305.9);
Tailwind
colors: {
  custom: {
    50: '#83619b',
    500: '#4e2272',
    950: '#000000',
  },
}
SCSS
$custom: #4e2272;
$custom-light: #83619b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2272",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 273,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35733,
    "c": 0.13303,
    "h": 305.9
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#4E2272
secondary
#73A54B
accent
#DD4A8D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2272

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

Preview Lab → · Contrast checker → · Palette generator →

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