#4E2880#4E2880

#4E2880 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.141 H 299.3°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#4E2880
RGBrgb(78, 40, 128)
HSLhsl(266, 52%, 33%)
HSVhsv(266, 69%, 50%)
CMYKcmyk(39.1%, 68.8%, 0%, 49.8%)
CIE-LABlab(25.85, 36.86, -43.24)
CIE-LCHlch(25.85, 56.82, 310.44°)
OKLaboklab(37.69% 0.0692 -0.1232)
OKLCHoklch(37.69% 0.141 299.3)
XYZxyz(7.7960, 4.6957, 20.9135)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2880 #5A8028
analogous
#282E80 #4E2880 #7A2880
triadic
#4E2880 #804E28 #28804E
tetradic
#4E2880 #80282E #5A8028 #28807A
square
#4E2880 #80282E #5A8028 #28807A
split-complementary
#4E2880 #807A28 #2E8028
monochromatic
#150B23 #321951 #4E2880 #6A37AF #8958CB

Accessibility & contrast

On white

10.83
#4E2880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E2880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2880
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2880#FFFFFF#000000##FFFFFF
##4E28801.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D83
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#433C50
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2880;
/* rgb */ color: rgb(78, 40, 128);
/* oklch */ color: oklch(37.7% 0.141 299.3);
Tailwind
colors: {
  custom: {
    50: '#8465a5',
    500: '#4e2880',
    950: '#000000',
  },
}
SCSS
$custom: #4e2880;
$custom-light: #8465a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2880",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 128
  },
  "hsl": {
    "h": 265.909,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37688,
    "c": 0.1413,
    "h": 299.3
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

primary
#4E2880
secondary
#88B054
accent
#DC4C9E
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2880

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

Preview Lab → · Contrast checker → · Palette generator →

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