#4E288C#4E288C

#4E288C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.156 H 295.6°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4E288C
RGBrgb(78, 40, 140)
HSLhsl(263, 56%, 35%)
HSVhsv(263, 71%, 55%)
CMYKcmyk(44.3%, 71.4%, 0%, 45.1%)
CIE-LABlab(26.82, 40.18, -49.16)
CIE-LCHlch(26.82, 63.49, 309.26°)
OKLaboklab(38.69% 0.0673 -0.1406)
OKLCHoklch(38.69% 0.156 295.6)
XYZxyz(8.6330, 5.0305, 25.3220)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E288C #668C28
analogous
#28348C #4E288C #80288C
triadic
#4E288C #8C4E28 #288C4E
tetradic
#4E288C #8C2834 #668C28 #288C80
square
#4E288C #8C2834 #668C28 #288C80
split-complementary
#4E288C #8C8028 #348C28
monochromatic
#190D2D #331A5C #4E288C #6936BC #895ED1

Accessibility & contrast

On white

10.47
#4E288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E288C
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E288C#FFFFFF#000000##FFFFFF
##4E288C1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#3D4157
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e288c;
/* rgb */ color: rgb(78, 40, 140);
/* oklch */ color: oklch(38.7% 0.156 295.6);
Tailwind
colors: {
  custom: {
    50: '#8565ae',
    500: '#4e288c',
    950: '#000000',
  },
}
SCSS
$custom: #4e288c;
$custom-light: #8565ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e288c",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 262.8,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38688,
    "c": 0.15587,
    "h": 295.6
  },
  "luminance": 0.05031
}

Semantic roles & 50–950 ramp

primary
#4E288C
secondary
#93B65A
accent
#DF49A6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E288C

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

Preview Lab → · Contrast checker → · Palette generator →

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