#4E2875#4E2875

#4E2875 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.128 H 303.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#4E2875
RGBrgb(78, 40, 117)
HSLhsl(270, 49%, 31%)
HSVhsv(270, 66%, 46%)
CMYKcmyk(33.3%, 65.8%, 0%, 54.1%)
CIE-LABlab(25.02, 33.88, -37.61)
CIE-LCHlch(25.02, 50.62, 312.01°)
OKLaboklab(36.83% 0.0703 -0.1066)
OKLCHoklch(36.83% 0.128 303.4)
XYZxyz(7.1108, 4.4216, 17.3050)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2875 #4F7528
analogous
#282875 #4E2875 #742875
triadic
#4E2875 #754E28 #28754E
tetradic
#4E2875 #752828 #4F7528 #287574
square
#4E2875 #752828 #4F7528 #287574
split-complementary
#4E2875 #757428 #287528
monochromatic
#11091A #301847 #4E2875 #6C38A3 #8B53C4

Accessibility & contrast

On white

11.14
#4E2875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E2875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2875
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2875#FFFFFF#000000##FFFFFF
##4E28751.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B77
Deuteranopia (green-blind)
#113B73
Tritanopia (blue-blind)
#47384A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2875;
/* rgb */ color: rgb(78, 40, 117);
/* oklch */ color: oklch(36.8% 0.128 303.4);
Tailwind
colors: {
  custom: {
    50: '#83649d',
    500: '#4e2875',
    950: '#000000',
  },
}
SCSS
$custom: #4e2875;
$custom-light: #83649d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2875",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 117
  },
  "hsl": {
    "h": 269.61,
    "s": 49.045,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36826,
    "c": 0.12772,
    "h": 303.4
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

primary
#4E2875
secondary
#7DA752
accent
#D94F95
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2875

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

Preview Lab → · Contrast checker → · Palette generator →

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