#4E187F#4E187F

#4E187F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.160 H 302.5°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#4E187F
RGBrgb(78, 24, 127)
HSLhsl(271, 68%, 30%)
HSVhsv(271, 81%, 50%)
CMYKcmyk(38.6%, 81.1%, 0%, 50.2%)
CIE-LABlab(23.02, 44.34, -47.22)
CIE-LCHlch(23.02, 64.77, 313.20°)
OKLaboklab(35.65% 0.0858 -0.1348)
OKLCHoklch(35.65% 0.16 302.5)
XYZxyz(7.2984, 3.8053, 20.4245)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E187F #497F18
analogous
#1A187F #4E187F #7F187D
triadic
#4E187F #7F4E18 #187F4E
tetradic
#4E187F #7F1A18 #497F18 #187D7F
square
#4E187F #7F1A18 #497F18 #187D7F
split-complementary
#4E187F #7D7F18 #187F1A
monochromatic
#10051A #2E0E4C #4E187F #6E22B2 #8D38D9

Accessibility & contrast

On white

11.93
#4E187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E187F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E187F#FFFFFF#000000##FFFFFF
##4E187F1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e187f;
/* rgb */ color: rgb(78, 24, 127);
/* oklch */ color: oklch(35.7% 0.160 302.5);
Tailwind
colors: {
  custom: {
    50: '#855ca5',
    500: '#4e187f',
    950: '#000000',
  },
}
SCSS
$custom: #4e187f;
$custom-light: #855ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e187f",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 271.456,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35654,
    "c": 0.15976,
    "h": 302.5
  },
  "luminance": 0.03805
}

Semantic roles & 50–950 ramp

primary
#4E187F
secondary
#77B33F
accent
#EB3D90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E187F

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

Preview Lab → · Contrast checker → · Palette generator →

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