#4E257F#4E257F

#4E257F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.144 H 300.3°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#4E257F
RGBrgb(78, 37, 127)
HSLhsl(267, 55%, 32%)
HSVhsv(267, 71%, 50%)
CMYKcmyk(38.6%, 70.9%, 0%, 50.2%)
CIE-LABlab(25.18, 38.21, -43.69)
CIE-LCHlch(25.18, 58.04, 311.17°)
OKLaboklab(37.19% 0.0728 -0.1245)
OKLCHoklch(37.19% 0.144 300.3)
XYZxyz(7.6333, 4.4751, 20.5362)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E257F #567F25
analogous
#25297F #4E257F #7B257F
triadic
#4E257F #7F4E25 #257F4E
tetradic
#4E257F #7F2529 #567F25 #257F7B
square
#4E257F #7F2529 #567F25 #257F7B
split-complementary
#4E257F #7F7B25 #297F25
monochromatic
#140920 #311750 #4E257F #6B33AE #8A52CD

Accessibility & contrast

On white

11.08
#4E257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4E257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E257F
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E257F#FFFFFF#000000##FFFFFF
##4E257F1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#433A4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e257f;
/* rgb */ color: rgb(78, 37, 127);
/* oklch */ color: oklch(37.2% 0.144 300.3);
Tailwind
colors: {
  custom: {
    50: '#8463a5',
    500: '#4e257f',
    950: '#000000',
  },
}
SCSS
$custom: #4e257f;
$custom-light: #8463a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e257f",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 267.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37186,
    "c": 0.14422,
    "h": 300.3
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#4E257F
secondary
#84B14F
accent
#DE4A9B
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E257F

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

Preview Lab → · Contrast checker → · Palette generator →

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