#4E257C#4E257C

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

Color values

HEX#4E257C
RGBrgb(78, 37, 124)
HSLhsl(268, 54%, 32%)
HSVhsv(268, 70%, 49%)
CMYKcmyk(37.1%, 70.2%, 0%, 51.4%)
CIE-LABlab(24.95, 37.40, -42.18)
CIE-LCHlch(24.95, 56.37, 311.56°)
OKLaboklab(36.94% 0.0732 -0.1201)
OKLCHoklch(36.94% 0.141 301.4)
XYZxyz(7.4407, 4.3980, 19.5218)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E257C #537C25
analogous
#25287C #4E257C #7A257C
triadic
#4E257C #7C4E25 #257C4E
tetradic
#4E257C #7C2528 #537C25 #257C7A
square
#4E257C #7C2528 #537C25 #257C7A
split-complementary
#4E257C #7C7A25 #287C25
monochromatic
#13091E #30174D #4E257C #6C33AB #8A50CB

Accessibility & contrast

On white

11.17
#4E257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E257C
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E257C#FFFFFF#000000##FFFFFF
##4E257C1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#44394D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e257c;
/* rgb */ color: rgb(78, 37, 124);
/* oklch */ color: oklch(36.9% 0.141 301.4);
Tailwind
colors: {
  custom: {
    50: '#8463a3',
    500: '#4e257c',
    950: '#000000',
  },
}
SCSS
$custom: #4e257c;
$custom-light: #8463a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e257c",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 268.276,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36941,
    "c": 0.14063,
    "h": 301.4
  },
  "luminance": 0.04398
}

Semantic roles & 50–950 ramp

primary
#4E257C
secondary
#81AE4F
accent
#DD4A98
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E257C

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

Preview Lab → · Contrast checker → · Palette generator →

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