#4E1975#4E1975

#4E1975 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.148 H 306.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4E1975
RGBrgb(78, 25, 117)
HSLhsl(275, 65%, 28%)
HSVhsv(275, 79%, 46%)
CMYKcmyk(33.3%, 78.6%, 0%, 54.1%)
CIE-LABlab(22.30, 41.46, -42.01)
CIE-LCHlch(22.30, 59.02, 314.62°)
OKLaboklab(34.88% 0.0875 -0.1195)
OKLCHoklch(34.88% 0.148 306.2)
XYZxyz(6.6997, 3.5994, 17.1680)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1975 #407519
analogous
#201975 #4E1975 #75196E
triadic
#4E1975 #754E19 #19754E
tetradic
#4E1975 #752019 #407519 #196E75
square
#4E1975 #752019 #407519 #196E75
split-complementary
#4E1975 #6E7519 #197520
monochromatic
#110519 #2C0E43 #4E1975 #7024A7 #9035D4

Accessibility & contrast

On white

12.21
#4E1975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E1975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1975
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1975#FFFFFF#000000##FFFFFF
##4E19751.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#473046
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1975;
/* rgb */ color: rgb(78, 25, 117);
/* oklch */ color: oklch(34.9% 0.148 306.2);
Tailwind
colors: {
  custom: {
    50: '#845c9d',
    500: '#4e1975',
    950: '#000000',
  },
}
SCSS
$custom: #4e1975;
$custom-light: #845c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1975",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 274.565,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34883,
    "c": 0.14808,
    "h": 306.2
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#4E1975
secondary
#6DAA40
accent
#E84087
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1975

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

Preview Lab → · Contrast checker → · Palette generator →

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