#4E126D#4E126D

#4E126D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.147 H 310.5°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#4E126D
RGBrgb(78, 18, 109)
HSLhsl(280, 72%, 25%)
HSVhsv(280, 83%, 43%)
CMYKcmyk(28.4%, 83.5%, 0%, 57.3%)
CIE-LABlab(20.66, 42.36, -39.51)
CIE-LCHlch(20.66, 57.93, 316.99°)
OKLaboklab(33.52% 0.0958 -0.1121)
OKLCHoklch(33.52% 0.147 310.5)
XYZxyz(6.1180, 3.1566, 14.7520)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E126D #316D12
analogous
#20126D #4E126D #6D125F
triadic
#4E126D #6D4E12 #126D4E
tetradic
#4E126D #6D2012 #316D12 #125F6D
square
#4E126D #6D2012 #316D12 #125F6D
split-complementary
#4E126D #5F6D12 #126D20
monochromatic
#13041A #280938 #4E126D #741BA2 #9923D6

Accessibility & contrast

On white

12.87
#4E126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E126D
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E126D#FFFFFF#000000##FFFFFF
##4E126D1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#4A2940
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e126d;
/* rgb */ color: rgb(78, 18, 109);
/* oklch */ color: oklch(33.5% 0.147 310.5);
Tailwind
colors: {
  custom: {
    50: '#845897',
    500: '#4e126d',
    950: '#000000',
  },
}
SCSS
$custom: #4e126d;
$custom-light: #845897;
$custom-dark: #000000;
JSON
{
  "hex": "#4e126d",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 279.56,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33523,
    "c": 0.14748,
    "h": 310.5
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#4E126D
secondary
#5CA437
accent
#EE3977
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E126D

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

Preview Lab → · Contrast checker → · Palette generator →

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