#4E247B#4E247B

#4E247B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.141 H 302.0°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#4E247B
RGBrgb(78, 36, 123)
HSLhsl(269, 55%, 31%)
HSVhsv(269, 71%, 48%)
CMYKcmyk(36.6%, 70.7%, 0%, 51.8%)
CIE-LABlab(24.68, 37.67, -41.98)
CIE-LCHlch(24.68, 56.40, 311.90°)
OKLaboklab(36.72% 0.0745 -0.1195)
OKLCHoklch(36.72% 0.141 302)
XYZxyz(7.3471, 4.3115, 19.1802)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E247B #517B24
analogous
#24257B #4E247B #79247B
triadic
#4E247B #7B4E24 #247B4E
tetradic
#4E247B #7B2425 #517B24 #247B79
square
#4E247B #7B2425 #517B24 #247B79
split-complementary
#4E247B #7B7924 #257B24
monochromatic
#12081C #30164C #4E247B #6C32AA #8B4ECB

Accessibility & contrast

On white

11.28
#4E247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E247B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E247B#FFFFFF#000000##FFFFFF
##4E247B1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#45384C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e247b;
/* rgb */ color: rgb(78, 36, 123);
/* oklch */ color: oklch(36.7% 0.141 302.0);
Tailwind
colors: {
  custom: {
    50: '#8462a2',
    500: '#4e247b',
    950: '#000000',
  },
}
SCSS
$custom: #4e247b;
$custom-light: #8462a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e247b",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 268.966,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36722,
    "c": 0.14082,
    "h": 302
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

primary
#4E247B
secondary
#7FAD4D
accent
#DE4A96
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E247B

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

Preview Lab → · Contrast checker → · Palette generator →

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