#4E2871#4E2871

#4E2871 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.123 H 305.1°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#4E2871
RGBrgb(78, 40, 113)
HSLhsl(271, 48%, 30%)
HSVhsv(271, 65%, 44%)
CMYKcmyk(31%, 64.6%, 0%, 55.7%)
CIE-LABlab(24.73, 32.81, -35.52)
CIE-LCHlch(24.73, 48.35, 312.74°)
OKLaboklab(36.53% 0.0705 -0.1005)
OKLCHoklch(36.53% 0.123 305.1)
XYZxyz(6.8807, 4.3296, 16.0928)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2871 #4B7128
analogous
#2A2871 #4E2871 #71286F
triadic
#4E2871 #714E28 #28714E
tetradic
#4E2871 #712A28 #4B7128 #286F71
square
#4E2871 #712A28 #4B7128 #286F71
split-complementary
#4E2871 #6F7128 #28712A
monochromatic
#100817 #2F1844 #4E2871 #6D389E #8C52C2

Accessibility & contrast

On white

11.25
#4E2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2871
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2871#FFFFFF#000000##FFFFFF
##4E28711.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A73
Deuteranopia (green-blind)
#173B6F
Tritanopia (blue-blind)
#483748
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2871;
/* rgb */ color: rgb(78, 40, 113);
/* oklch */ color: oklch(36.5% 0.123 305.1);
Tailwind
colors: {
  custom: {
    50: '#82649a',
    500: '#4e2871',
    950: '#000000',
  },
}
SCSS
$custom: #4e2871;
$custom-light: #82649a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2871",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 271.233,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.36526,
    "c": 0.12275,
    "h": 305.1
  },
  "luminance": 0.0433
}

Semantic roles & 50–950 ramp

primary
#4E2871
secondary
#79A352
accent
#D75091
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2871

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

Preview Lab → · Contrast checker → · Palette generator →

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