#4E126F#4E126F

#4E126F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.149 H 309.6°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#4E126F
RGBrgb(78, 18, 111)
HSLhsl(279, 72%, 25%)
HSVhsv(279, 84%, 44%)
CMYKcmyk(29.7%, 83.8%, 0%, 56.5%)
CIE-LABlab(20.83, 42.82, -40.54)
CIE-LCHlch(20.83, 58.97, 316.57°)
OKLaboklab(33.69% 0.0953 -0.1151)
OKLCHoklch(33.69% 0.149 309.6)
XYZxyz(6.2269, 3.2001, 15.3255)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E126F #336F12
analogous
#20126F #4E126F #6F1261
triadic
#4E126F #6F4E12 #126F4E
tetradic
#4E126F #6F2012 #336F12 #12616F
square
#4E126F #6F2012 #336F12 #12616F
split-complementary
#4E126F #616F12 #126F20
monochromatic
#13041A #29093A #4E126F #731BA4 #9823D8

Accessibility & contrast

On white

12.80
#4E126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E126F
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E126F#FFFFFF#000000##FFFFFF
##4E126F1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#492A41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e126f;
/* rgb */ color: rgb(78, 18, 111);
/* oklch */ color: oklch(33.7% 0.149 309.6);
Tailwind
colors: {
  custom: {
    50: '#845899',
    500: '#4e126f',
    950: '#000000',
  },
}
SCSS
$custom: #4e126f;
$custom-light: #845899;
$custom-dark: #000000;
JSON
{
  "hex": "#4e126f",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 278.71,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33693,
    "c": 0.14945,
    "h": 309.6
  },
  "luminance": 0.032
}

Semantic roles & 50–950 ramp

primary
#4E126F
secondary
#5EA637
accent
#EF397A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E126F

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

Preview Lab → · Contrast checker → · Palette generator →

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