#4E258D#4E258D

#4E258D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.161 H 295.9°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4E258D
RGBrgb(78, 37, 141)
HSLhsl(264, 58%, 35%)
HSVhsv(264, 74%, 55%)
CMYKcmyk(44.7%, 73.8%, 0%, 44.7%)
CIE-LABlab(26.35, 42.02, -50.55)
CIE-LCHlch(26.35, 65.74, 309.73°)
OKLaboklab(38.38% 0.0701 -0.1447)
OKLCHoklch(38.38% 0.161 295.9)
XYZxyz(8.6099, 4.8657, 25.6797)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E258D #648D25
analogous
#25308D #4E258D #82258D
triadic
#4E258D #8D4E25 #258D4E
tetradic
#4E258D #8D2530 #648D25 #258D82
square
#4E258D #8D2530 #648D25 #258D82
split-complementary
#4E258D #8D8225 #308D25
monochromatic
#180C2C #33185D #4E258D #6932BD #8959D3

Accessibility & contrast

On white

10.64
#4E258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E258D
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E258D#FFFFFF#000000##FFFFFF
##4E258D1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#3D4056
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e258d;
/* rgb */ color: rgb(78, 37, 141);
/* oklch */ color: oklch(38.4% 0.161 295.9);
Tailwind
colors: {
  custom: {
    50: '#8663af',
    500: '#4e258d',
    950: '#000000',
  },
}
SCSS
$custom: #4e258d;
$custom-light: #8663af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e258d",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 263.654,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38379,
    "c": 0.16078,
    "h": 295.9
  },
  "luminance": 0.04866
}

Semantic roles & 50–950 ramp

primary
#4E258D
secondary
#91B856
accent
#E246A4
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E258D

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

Preview Lab → · Contrast checker → · Palette generator →

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