#4D126C#4D126C

#4D126C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.146 H 310.3°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#4D126C
RGBrgb(77, 18, 108)
HSLhsl(279, 71%, 25%)
HSVhsv(279, 83%, 42%)
CMYKcmyk(28.7%, 83.3%, 0%, 57.6%)
CIE-LABlab(20.41, 41.94, -39.27)
CIE-LCHlch(20.41, 57.46, 316.88°)
OKLaboklab(33.29% 0.0946 -0.1114)
OKLCHoklch(33.29% 0.146 310.3)
XYZxyz(5.9831, 3.0932, 14.4663)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D126C #316C12
analogous
#20126C #4D126C #6C125E
triadic
#4D126C #6C4D12 #126C4D
tetradic
#4D126C #6C2012 #316C12 #125E6C
square
#4D126C #6C2012 #316C12 #125E6C
split-complementary
#4D126C #5E6C12 #126C20
monochromatic
#13041A #280938 #4D126C #721BA0 #9823D5

Accessibility & contrast

On white

12.97
#4D126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4D126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D126C
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D126C#FFFFFF#000000##FFFFFF
##4D126C1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#49293F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4d126c;
/* rgb */ color: rgb(77, 18, 108);
/* oklch */ color: oklch(33.3% 0.146 310.3);
Tailwind
colors: {
  custom: {
    50: '#835897',
    500: '#4d126c',
    950: '#000000',
  },
}
SCSS
$custom: #4d126c;
$custom-light: #835897;
$custom-dark: #000000;
JSON
{
  "hex": "#4d126c",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 279.333,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33291,
    "c": 0.14617,
    "h": 310.3
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#4D126C
secondary
#5CA336
accent
#EE3A78
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D126C

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

Preview Lab → · Contrast checker → · Palette generator →

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