#4E2271#4E2271

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

Color values

HEX#4E2271
RGBrgb(78, 34, 113)
HSLhsl(273, 54%, 29%)
HSVhsv(273, 70%, 44%)
CMYKcmyk(31%, 69.9%, 0%, 55.7%)
CIE-LABlab(23.53, 36.11, -37.46)
CIE-LCHlch(23.53, 52.03, 313.95°)
OKLaboklab(35.66% 0.0782 -0.1062)
OKLCHoklch(35.66% 0.132 306.4)
XYZxyz(6.6939, 3.9561, 16.0305)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2271 #457122
analogous
#272271 #4E2271 #71226D
triadic
#4E2271 #714E22 #22714E
tetradic
#4E2271 #712722 #457122 #226D71
square
#4E2271 #712722 #457122 #226D71
split-complementary
#4E2271 #6D7122 #227127
monochromatic
#100718 #2E1442 #4E2271 #6E30A0 #8E46C7

Accessibility & contrast

On white

11.72
#4E2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2271
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2271#FFFFFF#000000##FFFFFF
##4E22711.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#0D386F
Tritanopia (blue-blind)
#483346
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2271;
/* rgb */ color: rgb(78, 34, 113);
/* oklch */ color: oklch(35.7% 0.132 306.4);
Tailwind
colors: {
  custom: {
    50: '#83609a',
    500: '#4e2271',
    950: '#000000',
  },
}
SCSS
$custom: #4e2271;
$custom-light: #83609a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2271",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 273.418,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35655,
    "c": 0.13186,
    "h": 306.4
  },
  "luminance": 0.03956
}

Semantic roles & 50–950 ramp

primary
#4E2271
secondary
#72A44A
accent
#DD4B8C
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2271

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

Preview Lab → · Contrast checker → · Palette generator →

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