#4E258B#4E258B

#4E258B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.158 H 296.5°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#4E258B
RGBrgb(78, 37, 139)
HSLhsl(264, 58%, 35%)
HSVhsv(264, 73%, 55%)
CMYKcmyk(43.9%, 73.4%, 0%, 45.5%)
CIE-LABlab(26.18, 41.47, -49.59)
CIE-LCHlch(26.18, 64.64, 309.90°)
OKLaboklab(38.2% 0.0706 -0.1418)
OKLCHoklch(38.2% 0.158 296.5)
XYZxyz(8.4624, 4.8067, 24.9030)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E258B #628B25
analogous
#252F8B #4E258B #81258B
triadic
#4E258B #8B4E25 #258B4E
tetradic
#4E258B #8B252F #628B25 #258B81
square
#4E258B #8B252F #628B25 #258B81
split-complementary
#4E258B #8B8125 #2F8B25
monochromatic
#180B2A #33185B #4E258B #6932BB #8958D3

Accessibility & contrast

On white

10.71
#4E258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E258B
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E258B#FFFFFF#000000##FFFFFF
##4E258B1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#3E3F55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e258b;
/* rgb */ color: rgb(78, 37, 139);
/* oklch */ color: oklch(38.2% 0.158 296.5);
Tailwind
colors: {
  custom: {
    50: '#8563ae',
    500: '#4e258b',
    950: '#000000',
  },
}
SCSS
$custom: #4e258b;
$custom-light: #8563ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e258b",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 264.118,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38203,
    "c": 0.15843,
    "h": 296.5
  },
  "luminance": 0.04807
}

Semantic roles & 50–950 ramp

primary
#4E258B
secondary
#90B755
accent
#E147A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E258B

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

Preview Lab → · Contrast checker → · Palette generator →

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