#4D128F#4D128F

#4D128F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.181 H 297.2°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4D128F
RGBrgb(77, 18, 143)
HSLhsl(268, 78%, 32%)
HSVhsv(268, 87%, 56%)
CMYKcmyk(46.2%, 87.4%, 0%, 43.9%)
CIE-LABlab(23.65, 50.33, -56.22)
CIE-LCHlch(23.65, 75.46, 311.83°)
OKLaboklab(36.53% 0.083 -0.1612)
OKLCHoklch(36.53% 0.181 297.2)
XYZxyz(8.2335, 3.9934, 26.3183)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D128F #548F12
analogous
#12168F #4D128F #8C128F
triadic
#4D128F #8F4D12 #128F4D
tetradic
#4D128F #8F1216 #548F12 #128F8C
square
#4D128F #8F1216 #548F12 #128F8C
split-complementary
#4D128F #8F8C12 #168F12
monochromatic
#120422 #300B59 #4D128F #6A19C5 #8936E6

Accessibility & contrast

On white

11.67
#4D128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D128F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D128F#FFFFFF#000000##FFFFFF
##4D128F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#3B3954
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d128f;
/* rgb */ color: rgb(77, 18, 143);
/* oklch */ color: oklch(36.5% 0.181 297.2);
Tailwind
colors: {
  custom: {
    50: '#875ab1',
    500: '#4d128f',
    950: '#000000',
  },
}
SCSS
$custom: #4d128f;
$custom-light: #875ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d128f",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 268.32,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36525,
    "c": 0.18126,
    "h": 297.2
  },
  "luminance": 0.03994
}

Semantic roles & 50–950 ramp

primary
#4D128F
secondary
#82C33A
accent
#F43499
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4D128F

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

Preview Lab → · Contrast checker → · Palette generator →

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