#4E257B#4E257B

#4E257B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.139 H 301.7°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#4E257B
RGBrgb(78, 37, 123)
HSLhsl(269, 54%, 31%)
HSVhsv(269, 70%, 48%)
CMYKcmyk(36.6%, 69.9%, 0%, 51.8%)
CIE-LABlab(24.87, 37.13, -41.67)
CIE-LCHlch(24.87, 55.82, 311.70°)
OKLaboklab(36.86% 0.0734 -0.1186)
OKLCHoklch(36.86% 0.139 301.7)
XYZxyz(7.3778, 4.3729, 19.1904)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E257B #527B25
analogous
#25277B #4E257B #79257B
triadic
#4E257B #7B4E25 #257B4E
tetradic
#4E257B #7B2527 #527B25 #257B79
square
#4E257B #7B2527 #527B25 #257B79
split-complementary
#4E257B #7B7925 #277B25
monochromatic
#12091D #30174C #4E257B #6C33AA #8A50CA

Accessibility & contrast

On white

11.20
#4E257B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E257B
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E257B#FFFFFF#000000##FFFFFF
##4E257B1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#45394D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e257b;
/* rgb */ color: rgb(78, 37, 123);
/* oklch */ color: oklch(36.9% 0.139 301.7);
Tailwind
colors: {
  custom: {
    50: '#8463a2',
    500: '#4e257b',
    950: '#000000',
  },
}
SCSS
$custom: #4e257b;
$custom-light: #8463a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e257b",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 123
  },
  "hsl": {
    "h": 268.605,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3686,
    "c": 0.13943,
    "h": 301.7
  },
  "luminance": 0.04373
}

Semantic roles & 50–950 ramp

primary
#4E257B
secondary
#80AD4F
accent
#DD4B97
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E257B

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

Preview Lab → · Contrast checker → · Palette generator →

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