#4D127A#4D127A

#4D127A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.160 H 304.4°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#4D127A
RGBrgb(77, 18, 122)
HSLhsl(274, 74%, 27%)
HSVhsv(274, 85%, 48%)
CMYKcmyk(36.9%, 85.2%, 0%, 52.2%)
CIE-LABlab(21.64, 45.23, -46.30)
CIE-LCHlch(21.64, 64.72, 314.33°)
OKLaboklab(34.52% 0.0906 -0.1321)
OKLCHoklch(34.52% 0.16 304.4)
XYZxyz(6.7889, 3.4156, 18.7102)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D127A #3F7A12
analogous
#19127A #4D127A #7A1273
triadic
#4D127A #7A4D12 #127A4D
tetradic
#4D127A #7A1912 #3F7A12 #12737A
square
#4D127A #7A1912 #3F7A12 #12737A
split-complementary
#4D127A #737A12 #127A19
monochromatic
#11041B #2B0A45 #4D127A #6F1AAF #9027DF

Accessibility & contrast

On white

12.48
#4D127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4D127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D127A
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D127A#FFFFFF#000000##FFFFFF
##4D127A1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#442F47
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d127a;
/* rgb */ color: rgb(77, 18, 122);
/* oklch */ color: oklch(34.5% 0.160 304.4);
Tailwind
colors: {
  custom: {
    50: '#8459a1',
    500: '#4d127a',
    950: '#000000',
  },
}
SCSS
$custom: #4d127a;
$custom-light: #8459a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d127a",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 274.038,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34523,
    "c": 0.16015,
    "h": 304.4
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#4D127A
secondary
#6CB038
accent
#F13787
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D127A

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

Preview Lab → · Contrast checker → · Palette generator →

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