#4D126F#4D126F

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

Color values

HEX#4D126F
RGBrgb(77, 18, 111)
HSLhsl(278, 72%, 25%)
HSVhsv(278, 84%, 44%)
CMYKcmyk(30.6%, 83.8%, 0%, 56.5%)
CIE-LABlab(20.67, 42.64, -40.81)
CIE-LCHlch(20.67, 59.02, 316.26°)
OKLaboklab(33.55% 0.0938 -0.1159)
OKLCHoklch(33.55% 0.149 309)
XYZxyz(6.1455, 3.1582, 15.3217)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D126F #346F12
analogous
#1F126F #4D126F #6F1262
triadic
#4D126F #6F4D12 #126F4D
tetradic
#4D126F #6F1F12 #346F12 #12626F
square
#4D126F #6F1F12 #346F12 #12626F
split-complementary
#4D126F #626F12 #126F1F
monochromatic
#12041A #28093A #4D126F #721BA4 #9623D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D126F#FFFFFF#000000##FFFFFF
##4D126F1.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)
#003071
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#482A41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d126f;
/* rgb */ color: rgb(77, 18, 111);
/* oklch */ color: oklch(33.5% 0.149 309.0);
Tailwind
colors: {
  custom: {
    50: '#835899',
    500: '#4d126f',
    950: '#000000',
  },
}
SCSS
$custom: #4d126f;
$custom-light: #835899;
$custom-dark: #000000;
JSON
{
  "hex": "#4d126f",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 278.065,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33547,
    "c": 0.14916,
    "h": 309
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#4D126F
secondary
#5FA637
accent
#EF397B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D126F

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

Preview Lab → · Contrast checker → · Palette generator →

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