#4E187E#4E187E

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

Color values

HEX#4E187E
RGBrgb(78, 24, 126)
HSLhsl(272, 68%, 29%)
HSVhsv(272, 81%, 49%)
CMYKcmyk(38.1%, 81%, 0%, 50.6%)
CIE-LABlab(22.93, 44.10, -46.73)
CIE-LCHlch(22.93, 64.25, 313.34°)
OKLaboklab(35.57% 0.0861 -0.1333)
OKLCHoklch(35.57% 0.159 302.8)
XYZxyz(7.2335, 3.7793, 20.0830)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E187E #487E18
analogous
#1B187E #4E187E #7E187B
triadic
#4E187E #7E4E18 #187E4E
tetradic
#4E187E #7E1B18 #487E18 #187B7E
square
#4E187E #7E1B18 #487E18 #187B7E
split-complementary
#4E187E #7B7E18 #187E1B
monochromatic
#10051A #2E0E4B #4E187E #6E22B1 #8D37D9

Accessibility & contrast

On white

11.96
#4E187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4E187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E187E
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E187E#FFFFFF#000000##FFFFFF
##4E187E1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e187e;
/* rgb */ color: rgb(78, 24, 126);
/* oklch */ color: oklch(35.6% 0.159 302.8);
Tailwind
colors: {
  custom: {
    50: '#855ca4',
    500: '#4e187e',
    950: '#000000',
  },
}
SCSS
$custom: #4e187e;
$custom-light: #855ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e187e",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 271.765,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35565,
    "c": 0.1587,
    "h": 302.8
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#4E187E
secondary
#76B23F
accent
#EB3D8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E187E

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

Preview Lab → · Contrast checker → · Palette generator →

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