#4E126E#4E126E

#4E126E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.148 H 310.1°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#4E126E
RGBrgb(78, 18, 110)
HSLhsl(279, 72%, 25%)
HSVhsv(279, 84%, 43%)
CMYKcmyk(29.1%, 83.6%, 0%, 56.9%)
CIE-LABlab(20.74, 42.59, -40.03)
CIE-LCHlch(20.74, 58.45, 316.78°)
OKLaboklab(33.61% 0.0956 -0.1136)
OKLCHoklch(33.61% 0.148 310.1)
XYZxyz(6.1721, 3.1782, 15.0371)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E126E #326E12
analogous
#20126E #4E126E #6E1260
triadic
#4E126E #6E4E12 #126E4E
tetradic
#4E126E #6E2012 #326E12 #12606E
square
#4E126E #6E2012 #326E12 #12606E
split-complementary
#4E126E #606E12 #126E20
monochromatic
#13041A #290939 #4E126E #731BA3 #9923D7

Accessibility & contrast

On white

12.84
#4E126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4E126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E126E
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E126E#FFFFFF#000000##FFFFFF
##4E126E1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#00336C
Tritanopia (blue-blind)
#492A40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e126e;
/* rgb */ color: rgb(78, 18, 110);
/* oklch */ color: oklch(33.6% 0.148 310.1);
Tailwind
colors: {
  custom: {
    50: '#845898',
    500: '#4e126e',
    950: '#000000',
  },
}
SCSS
$custom: #4e126e;
$custom-light: #845898;
$custom-dark: #000000;
JSON
{
  "hex": "#4e126e",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 279.13,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33608,
    "c": 0.14846,
    "h": 310.1
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#4E126E
secondary
#5DA537
accent
#EF3978
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E126E

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

Preview Lab → · Contrast checker → · Palette generator →

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