#4D167F#4D167F

#4D167F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.162 H 302.1°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#4D167F
RGBrgb(77, 22, 127)
HSLhsl(271, 70%, 29%)
HSVhsv(271, 83%, 50%)
CMYKcmyk(39.4%, 82.7%, 0%, 50.2%)
CIE-LABlab(22.60, 44.97, -47.91)
CIE-LCHlch(22.60, 65.71, 313.19°)
OKLaboklab(35.33% 0.0859 -0.1368)
OKLCHoklch(35.33% 0.162 302.1)
XYZxyz(7.1773, 3.6839, 20.4075)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D167F #487F16
analogous
#19167F #4D167F #7F167D
triadic
#4D167F #7F4D16 #167F4D
tetradic
#4D167F #7F1916 #487F16 #167D7F
square
#4D167F #7F1916 #487F16 #167D7F
split-complementary
#4D167F #7D7F16 #167F19
monochromatic
#10051A #2D0D4B #4D167F #6D1FB3 #8C34DC

Accessibility & contrast

On white

12.09
#4D167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4D167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D167F
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D167F#FFFFFF#000000##FFFFFF
##4D167F1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#42334B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d167f;
/* rgb */ color: rgb(77, 22, 127);
/* oklch */ color: oklch(35.3% 0.162 302.1);
Tailwind
colors: {
  custom: {
    50: '#845ba5',
    500: '#4d167f',
    950: '#000000',
  },
}
SCSS
$custom: #4d167f;
$custom-light: #845ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d167f",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 271.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35331,
    "c": 0.16155,
    "h": 302.1
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#4D167F
secondary
#76B43D
accent
#ED3B90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D167F

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

Preview Lab → · Contrast checker → · Palette generator →

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