#4E2171#4E2171

#4E2171 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.133 H 306.6°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#4E2171
RGBrgb(78, 33, 113)
HSLhsl(274, 55%, 29%)
HSVhsv(274, 71%, 44%)
CMYKcmyk(31%, 70.8%, 0%, 55.7%)
CIE-LABlab(23.34, 36.64, -37.76)
CIE-LCHlch(23.34, 52.61, 314.13°)
OKLaboklab(35.52% 0.0794 -0.1071)
OKLCHoklch(35.52% 0.133 306.6)
XYZxyz(6.6657, 3.8997, 16.0211)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2171 #447121
analogous
#262171 #4E2171 #71216C
triadic
#4E2171 #714E21 #21714E
tetradic
#4E2171 #712621 #447121 #216C71
square
#4E2171 #712621 #447121 #216C71
split-complementary
#4E2171 #6C7121 #217126
monochromatic
#100718 #2D1342 #4E2171 #6F2FA0 #8E44C8

Accessibility & contrast

On white

11.80
#4E2171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E2171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2171
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2171#FFFFFF#000000##FFFFFF
##4E21711.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2171;
/* rgb */ color: rgb(78, 33, 113);
/* oklch */ color: oklch(35.5% 0.133 306.6);
Tailwind
colors: {
  custom: {
    50: '#83609a',
    500: '#4e2171',
    950: '#000000',
  },
}
SCSS
$custom: #4e2171;
$custom-light: #83609a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2171",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 273.75,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3552,
    "c": 0.1333,
    "h": 306.6
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#4E2171
secondary
#71A549
accent
#DE4A8B
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2171

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

Preview Lab → · Contrast checker → · Palette generator →

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