#4E126C#4E126C

#4E126C is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.4% C 0.146 H 311.0°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#4E126C
RGBrgb(78, 18, 108)
HSLhsl(280, 71%, 25%)
HSVhsv(280, 83%, 42%)
CMYKcmyk(27.8%, 83.3%, 0%, 57.6%)
CIE-LABlab(20.58, 42.13, -39.00)
CIE-LCHlch(20.58, 57.41, 317.21°)
OKLaboklab(33.44% 0.0961 -0.1106)
OKLCHoklch(33.44% 0.146 311)
XYZxyz(6.0644, 3.1352, 14.4701)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E126C #306C12
analogous
#21126C #4E126C #6C125D
triadic
#4E126C #6C4E12 #126C4E
tetradic
#4E126C #6C2112 #306C12 #125D6C
square
#4E126C #6C2112 #306C12 #125D6C
split-complementary
#4E126C #5D6C12 #126C21
monochromatic
#13041A #280938 #4E126C #741BA0 #9A23D5

Accessibility & contrast

On white

12.91
#4E126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4E126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E126C
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E126C#FFFFFF#000000##FFFFFF
##4E126C1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#4A293F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e126c;
/* rgb */ color: rgb(78, 18, 108);
/* oklch */ color: oklch(33.4% 0.146 311.0);
Tailwind
colors: {
  custom: {
    50: '#845897',
    500: '#4e126c',
    950: '#000000',
  },
}
SCSS
$custom: #4e126c;
$custom-light: #845897;
$custom-dark: #000000;
JSON
{
  "hex": "#4e126c",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 280,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33439,
    "c": 0.14648,
    "h": 311
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#4E126C
secondary
#5BA336
accent
#EE3A76
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E126C

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

Preview Lab → · Contrast checker → · Palette generator →

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