#4E258A#4E258A

#4E258A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.157 H 296.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#4E258A
RGBrgb(78, 37, 138)
HSLhsl(264, 58%, 34%)
HSVhsv(264, 73%, 54%)
CMYKcmyk(43.5%, 73.2%, 0%, 45.9%)
CIE-LABlab(26.09, 41.20, -49.11)
CIE-LCHlch(26.09, 64.10, 309.99°)
OKLaboklab(38.12% 0.0708 -0.1404)
OKLCHoklch(38.12% 0.157 296.8)
XYZxyz(8.3897, 4.7776, 24.5200)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E258A #618A25
analogous
#252F8A #4E258A #81258A
triadic
#4E258A #8A4E25 #258A4E
tetradic
#4E258A #8A252F #618A25 #258A81
square
#4E258A #8A252F #618A25 #258A81
split-complementary
#4E258A #8A8125 #2F8A25
monochromatic
#170B29 #33185A #4E258A #6932BA #8957D2

Accessibility & contrast

On white

10.74
#4E258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E258A
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E258A#FFFFFF#000000##FFFFFF
##4E258A1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#3E3E55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e258a;
/* rgb */ color: rgb(78, 37, 138);
/* oklch */ color: oklch(38.1% 0.157 296.8);
Tailwind
colors: {
  custom: {
    50: '#8563ad',
    500: '#4e258a',
    950: '#000000',
  },
}
SCSS
$custom: #4e258a;
$custom-light: #8563ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e258a",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 264.356,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38116,
    "c": 0.15725,
    "h": 296.8
  },
  "luminance": 0.04778
}

Semantic roles & 50–950 ramp

primary
#4E258A
secondary
#8FB754
accent
#E147A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E258A

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

Preview Lab → · Contrast checker → · Palette generator →

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