#4E2472#4E2472

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

Color values

HEX#4E2472
RGBrgb(78, 36, 114)
HSLhsl(272, 52%, 29%)
HSVhsv(272, 68%, 45%)
CMYKcmyk(31.6%, 68.4%, 0%, 55.3%)
CIE-LABlab(23.99, 35.30, -37.36)
CIE-LCHlch(23.99, 51.40, 313.38°)
OKLaboklab(36.01% 0.0756 -0.1059)
OKLCHoklch(36.01% 0.13 305.5)
XYZxyz(6.8094, 4.0964, 16.3483)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2472 #487224
analogous
#272472 #4E2472 #72246F
triadic
#4E2472 #724E24 #24724E
tetradic
#4E2472 #722724 #487224 #246F72
square
#4E2472 #722724 #487224 #246F72
split-complementary
#4E2472 #6F7224 #247227
monochromatic
#100717 #2E1543 #4E2472 #6E33A1 #8D4AC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2472#FFFFFF#000000##FFFFFF
##4E24721.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)
#003874
Deuteranopia (green-blind)
#0F3970
Tritanopia (blue-blind)
#483547
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2472;
/* rgb */ color: rgb(78, 36, 114);
/* oklch */ color: oklch(36.0% 0.130 305.5);
Tailwind
colors: {
  custom: {
    50: '#83629b',
    500: '#4e2472',
    950: '#000000',
  },
}
SCSS
$custom: #4e2472;
$custom-light: #83629b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2472",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 114
  },
  "hsl": {
    "h": 272.308,
    "s": 52,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36011,
    "c": 0.1301,
    "h": 305.5
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#4E2472
secondary
#76A54D
accent
#DB4C8E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2472

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

Preview Lab → · Contrast checker → · Palette generator →

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