#4D167E#4D167E

#4D167E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.161 H 302.5°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#4D167E
RGBrgb(77, 22, 126)
HSLhsl(272, 70%, 29%)
HSVhsv(272, 83%, 49%)
CMYKcmyk(38.9%, 82.5%, 0%, 50.6%)
CIE-LABlab(22.51, 44.72, -47.42)
CIE-LCHlch(22.51, 65.19, 313.32°)
OKLaboklab(35.24% 0.0862 -0.1354)
OKLCHoklch(35.24% 0.161 302.5)
XYZxyz(7.1125, 3.6579, 20.0660)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D167E #477E16
analogous
#19167E #4D167E #7E167B
triadic
#4D167E #7E4D16 #167E4D
tetradic
#4D167E #7E1916 #477E16 #167B7E
square
#4D167E #7E1916 #477E16 #167B7E
split-complementary
#4D167E #7B7E16 #167E19
monochromatic
#10051A #2D0D4A #4D167E #6D1FB2 #8C33DB

Accessibility & contrast

On white

12.13
#4D167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4D167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D167E
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D167E#FFFFFF#000000##FFFFFF
##4D167E1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#42324A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d167e;
/* rgb */ color: rgb(77, 22, 126);
/* oklch */ color: oklch(35.2% 0.161 302.5);
Tailwind
colors: {
  custom: {
    50: '#845ba4',
    500: '#4d167e',
    950: '#000000',
  },
}
SCSS
$custom: #4d167e;
$custom-light: #845ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d167e",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 271.731,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3524,
    "c": 0.16051,
    "h": 302.5
  },
  "luminance": 0.03658
}

Semantic roles & 50–950 ramp

primary
#4D167E
secondary
#74B33D
accent
#ED3B8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D167E

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

Preview Lab → · Contrast checker → · Palette generator →

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