#4E1273#4E1273

#4E1273 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.153 H 307.9°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#4E1273
RGBrgb(78, 18, 115)
HSLhsl(277, 73%, 26%)
HSVhsv(277, 84%, 45%)
CMYKcmyk(32.2%, 84.3%, 0%, 54.9%)
CIE-LABlab(21.17, 43.75, -42.57)
CIE-LCHlch(21.17, 61.04, 315.78°)
OKLaboklab(34.04% 0.0942 -0.1211)
OKLCHoklch(34.04% 0.153 307.9)
XYZxyz(6.4520, 3.2902, 16.5115)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1273 #377312
analogous
#1D1273 #4E1273 #731267
triadic
#4E1273 #734E12 #12734E
tetradic
#4E1273 #731D12 #377312 #126773
square
#4E1273 #731D12 #377312 #126773
split-complementary
#4E1273 #677312 #12731D
monochromatic
#12041A #2A0A3E #4E1273 #721AA8 #9623DD

Accessibility & contrast

On white

12.67
#4E1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4E1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1273
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1273#FFFFFF#000000##FFFFFF
##4E12731.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#482C43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1273;
/* rgb */ color: rgb(78, 18, 115);
/* oklch */ color: oklch(34.0% 0.153 307.9);
Tailwind
colors: {
  custom: {
    50: '#84599c',
    500: '#4e1273',
    950: '#000000',
  },
}
SCSS
$custom: #4e1273;
$custom-light: #84599c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1273",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 277.113,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34039,
    "c": 0.15341,
    "h": 307.9
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#4E1273
secondary
#63AA37
accent
#F0387E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1273

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

Preview Lab → · Contrast checker → · Palette generator →

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