#4D107E#4D107E

#4D107E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.166 H 303.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#4D107E
RGBrgb(77, 16, 126)
HSLhsl(273, 77%, 28%)
HSVhsv(273, 87%, 49%)
CMYKcmyk(38.9%, 87.3%, 0%, 50.6%)
CIE-LABlab(21.78, 46.85, -48.61)
CIE-LCHlch(21.78, 67.51, 313.94°)
OKLaboklab(34.74% 0.0906 -0.1388)
OKLCHoklch(34.74% 0.166 303.1)
XYZxyz(7.0109, 3.4547, 20.0321)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D107E #417E10
analogous
#16107E #4D107E #7E1078
triadic
#4D107E #7E4D10 #107E4D
tetradic
#4D107E #7E1610 #417E10 #10787E
square
#4D107E #7E1610 #417E10 #10787E
split-complementary
#4D107E #787E10 #107E16
monochromatic
#11031B #2C0948 #4D107E #6E17B4 #8F25E3

Accessibility & contrast

On white

12.42
#4D107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D107E
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D107E#FFFFFF#000000##FFFFFF
##4D107E1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#433049
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d107e;
/* rgb */ color: rgb(77, 16, 126);
/* oklch */ color: oklch(34.7% 0.166 303.1);
Tailwind
colors: {
  custom: {
    50: '#8559a4',
    500: '#4d107e',
    950: '#000000',
  },
}
SCSS
$custom: #4d107e;
$custom-light: #8559a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d107e",
  "rgb": {
    "r": 77,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 273.273,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34736,
    "c": 0.1658,
    "h": 303.1
  },
  "luminance": 0.03455
}

Semantic roles & 50–950 ramp

primary
#4D107E
secondary
#6EB436
accent
#F43489
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D107E

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

Preview Lab → · Contrast checker → · Palette generator →

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