#4E2971#4E2971

#4E2971 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.121 H 304.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#4E2971
RGBrgb(78, 41, 113)
HSLhsl(271, 47%, 30%)
HSVhsv(271, 64%, 44%)
CMYKcmyk(31%, 63.7%, 0%, 55.7%)
CIE-LABlab(24.95, 32.24, -35.17)
CIE-LCHlch(24.95, 47.71, 312.51°)
OKLaboklab(36.68% 0.0692 -0.0995)
OKLCHoklch(36.68% 0.121 304.8)
XYZxyz(6.9148, 4.3979, 16.1042)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2971 #4C7129
analogous
#2A2971 #4E2971 #712970
triadic
#4E2971 #714E29 #29714E
tetradic
#4E2971 #712A29 #4C7129 #297071
square
#4E2971 #712A29 #4C7129 #297071
split-complementary
#4E2971 #707129 #29712A
monochromatic
#100817 #2F1944 #4E2971 #6D399E #8C54C1

Accessibility & contrast

On white

11.17
#4E2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2971
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2971#FFFFFF#000000##FFFFFF
##4E29711.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043A73
Deuteranopia (green-blind)
#183B6F
Tritanopia (blue-blind)
#483849
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2971;
/* rgb */ color: rgb(78, 41, 113);
/* oklch */ color: oklch(36.7% 0.121 304.8);
Tailwind
colors: {
  custom: {
    50: '#82659a',
    500: '#4e2971',
    950: '#000000',
  },
}
SCSS
$custom: #4e2971;
$custom-light: #82659a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2971",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 270.833,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36681,
    "c": 0.12116,
    "h": 304.8
  },
  "luminance": 0.04398
}

Semantic roles & 50–950 ramp

primary
#4E2971
secondary
#7AA353
accent
#D65192
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2971

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

Preview Lab → · Contrast checker → · Palette generator →

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