#4E1973#4E1973

#4E1973 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.146 H 307.0°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4E1973
RGBrgb(78, 25, 115)
HSLhsl(275, 64%, 27%)
HSVhsv(275, 78%, 45%)
CMYKcmyk(32.2%, 78.3%, 0%, 54.9%)
CIE-LABlab(22.13, 40.97, -41.00)
CIE-LCHlch(22.13, 57.96, 314.98°)
OKLaboklab(34.72% 0.0879 -0.1165)
OKLCHoklch(34.72% 0.146 307)
XYZxyz(6.5834, 3.5528, 16.5553)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1973 #3E7319
analogous
#211973 #4E1973 #73196B
triadic
#4E1973 #734E19 #19734E
tetradic
#4E1973 #732119 #3E7319 #196B73
square
#4E1973 #732119 #3E7319 #196B73
split-complementary
#4E1973 #6B7319 #197321
monochromatic
#110519 #2C0E41 #4E1973 #7024A5 #9134D3

Accessibility & contrast

On white

12.28
#4E1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E1973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1973
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1973#FFFFFF#000000##FFFFFF
##4E19731.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#482F45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1973;
/* rgb */ color: rgb(78, 25, 115);
/* oklch */ color: oklch(34.7% 0.146 307.0);
Tailwind
colors: {
  custom: {
    50: '#845c9c',
    500: '#4e1973',
    950: '#000000',
  },
}
SCSS
$custom: #4e1973;
$custom-light: #845c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1973",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 275.333,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34715,
    "c": 0.14595,
    "h": 307
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#4E1973
secondary
#6BA840
accent
#E74185
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1973

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

Preview Lab → · Contrast checker → · Palette generator →

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