#4D117C#4D117C

#4D117C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.163 H 303.8°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#4D117C
RGBrgb(77, 17, 124)
HSLhsl(274, 76%, 28%)
HSVhsv(274, 86%, 49%)
CMYKcmyk(37.9%, 86.3%, 0%, 51.4%)
CIE-LABlab(21.70, 46.05, -47.47)
CIE-LCHlch(21.70, 66.13, 314.13°)
OKLaboklab(34.63% 0.0906 -0.1355)
OKLCHoklch(34.63% 0.163 303.8)
XYZxyz(6.8983, 3.4339, 19.3643)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D117C #407C11
analogous
#17117C #4D117C #7C1175
triadic
#4D117C #7C4D11 #117C4D
tetradic
#4D117C #7C1711 #407C11 #11757C
square
#4D117C #7C1711 #407C11 #11757C
split-complementary
#4D117C #757C11 #117C17
monochromatic
#11041B #2C0A46 #4D117C #6E18B2 #8F26E1

Accessibility & contrast

On white

12.45
#4D117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4D117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D117C
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D117C#FFFFFF#000000##FFFFFF
##4D117C1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#433048
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d117c;
/* rgb */ color: rgb(77, 17, 124);
/* oklch */ color: oklch(34.6% 0.163 303.8);
Tailwind
colors: {
  custom: {
    50: '#8459a3',
    500: '#4d117c',
    950: '#000000',
  },
}
SCSS
$custom: #4d117c;
$custom-light: #8459a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d117c",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 273.645,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34626,
    "c": 0.163,
    "h": 303.8
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#4D117C
secondary
#6DB237
accent
#F23588
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D117C

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

Preview Lab → · Contrast checker → · Palette generator →

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