#4E288B#4E288B

#4E288B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.155 H 295.9°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#4E288B
RGBrgb(78, 40, 139)
HSLhsl(263, 55%, 35%)
HSVhsv(263, 71%, 55%)
CMYKcmyk(43.9%, 71.2%, 0%, 45.5%)
CIE-LABlab(26.74, 39.90, -48.68)
CIE-LCHlch(26.74, 62.94, 309.34°)
OKLaboklab(38.6% 0.0675 -0.1392)
OKLCHoklch(38.6% 0.155 295.9)
XYZxyz(8.5596, 5.0012, 24.9354)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E288B #658B28
analogous
#28348B #4E288B #7F288B
triadic
#4E288B #8B4E28 #288B4E
tetradic
#4E288B #8B2834 #658B28 #288B7F
square
#4E288B #8B2834 #658B28 #288B7F
split-complementary
#4E288B #8B7F28 #348B28
monochromatic
#190D2C #331A5B #4E288B #6936BB #895DD0

Accessibility & contrast

On white

10.50
#4E288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E288B
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E288B#FFFFFF#000000##FFFFFF
##4E288B1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#3E4056
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e288b;
/* rgb */ color: rgb(78, 40, 139);
/* oklch */ color: oklch(38.6% 0.155 295.9);
Tailwind
colors: {
  custom: {
    50: '#8565ae',
    500: '#4e288b',
    950: '#000000',
  },
}
SCSS
$custom: #4e288b;
$custom-light: #8565ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e288b",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 263.03,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38603,
    "c": 0.15467,
    "h": 295.9
  },
  "luminance": 0.05001
}

Semantic roles & 50–950 ramp

primary
#4E288B
secondary
#92B659
accent
#DF49A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E288B

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

Preview Lab → · Contrast checker → · Palette generator →

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