#4E257A#4E257A

#4E257A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.138 H 302.1°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4E257A
RGBrgb(78, 37, 122)
HSLhsl(269, 53%, 31%)
HSVhsv(269, 70%, 48%)
CMYKcmyk(36.1%, 69.7%, 0%, 52.2%)
CIE-LABlab(24.79, 36.87, -41.16)
CIE-LCHlch(24.79, 55.26, 311.85°)
OKLaboklab(36.78% 0.0735 -0.1171)
OKLCHoklch(36.78% 0.138 302.1)
XYZxyz(7.3155, 4.3480, 18.8624)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E257A #517A25
analogous
#25267A #4E257A #78257A
triadic
#4E257A #7A4E25 #257A4E
tetradic
#4E257A #7A2526 #517A25 #257A78
square
#4E257A #7A2526 #517A25 #257A78
split-complementary
#4E257A #7A7825 #267A25
monochromatic
#12091C #30174B #4E257A #6C33A9 #8B50CA

Accessibility & contrast

On white

11.23
#4E257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E257A
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E257A#FFFFFF#000000##FFFFFF
##4E257A1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e257a;
/* rgb */ color: rgb(78, 37, 122);
/* oklch */ color: oklch(36.8% 0.138 302.1);
Tailwind
colors: {
  custom: {
    50: '#8463a1',
    500: '#4e257a',
    950: '#000000',
  },
}
SCSS
$custom: #4e257a;
$custom-light: #8463a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e257a",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 268.941,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3678,
    "c": 0.13823,
    "h": 302.1
  },
  "luminance": 0.04348
}

Semantic roles & 50–950 ramp

primary
#4E257A
secondary
#7FAC4E
accent
#DD4B96
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E257A

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

Preview Lab → · Contrast checker → · Palette generator →

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