#4E177F#4E177F

#4E177F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.161 H 302.6°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#4E177F
RGBrgb(78, 23, 127)
HSLhsl(272, 69%, 29%)
HSVhsv(272, 82%, 50%)
CMYKcmyk(38.6%, 81.9%, 0%, 50.2%)
CIE-LABlab(22.88, 44.74, -47.44)
CIE-LCHlch(22.88, 65.22, 313.32°)
OKLaboklab(35.56% 0.0866 -0.1354)
OKLCHoklch(35.56% 0.161 302.6)
XYZxyz(7.2781, 3.7648, 20.4178)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E177F #487F17
analogous
#1A177F #4E177F #7F177C
triadic
#4E177F #7F4E17 #177F4E
tetradic
#4E177F #7F1A17 #487F17 #177C7F
square
#4E177F #7F1A17 #487F17 #177C7F
split-complementary
#4E177F #7C7F17 #177F1A
monochromatic
#10051A #2E0E4B #4E177F #6E20B3 #8D36DB

Accessibility & contrast

On white

11.98
#4E177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4E177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E177F
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E177F#FFFFFF#000000##FFFFFF
##4E177F1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#44334B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e177f;
/* rgb */ color: rgb(78, 23, 127);
/* oklch */ color: oklch(35.6% 0.161 302.6);
Tailwind
colors: {
  custom: {
    50: '#855ca5',
    500: '#4e177f',
    950: '#000000',
  },
}
SCSS
$custom: #4e177f;
$custom-light: #855ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e177f",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 271.731,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35557,
    "c": 0.16076,
    "h": 302.6
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#4E177F
secondary
#76B43E
accent
#EC3C8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E177F

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

Preview Lab → · Contrast checker → · Palette generator →

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