#4D167B#4D167B

#4D167B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.157 H 303.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#4D167B
RGBrgb(77, 22, 123)
HSLhsl(273, 70%, 28%)
HSVhsv(273, 82%, 48%)
CMYKcmyk(37.4%, 82.1%, 0%, 51.8%)
CIE-LABlab(22.24, 43.98, -45.96)
CIE-LCHlch(22.24, 63.61, 313.74°)
OKLaboklab(34.97% 0.0871 -0.1311)
OKLCHoklch(34.97% 0.157 303.6)
XYZxyz(6.9218, 3.5817, 19.0617)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D167B #447B16
analogous
#1A167B #4D167B #7B1676
triadic
#4D167B #7B4D16 #167B4D
tetradic
#4D167B #7B1A16 #447B16 #16767B
square
#4D167B #7B1A16 #447B16 #16767B
split-complementary
#4D167B #767B16 #167B1A
monochromatic
#10051A #2C0D47 #4D167B #6D1FAF #8D31DA

Accessibility & contrast

On white

12.23
#4D167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4D167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D167B
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D167B#FFFFFF#000000##FFFFFF
##4D167B1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#443149
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d167b;
/* rgb */ color: rgb(77, 22, 123);
/* oklch */ color: oklch(35.0% 0.157 303.6);
Tailwind
colors: {
  custom: {
    50: '#845ba2',
    500: '#4d167b',
    950: '#000000',
  },
}
SCSS
$custom: #4d167b;
$custom-light: #845ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d167b",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 272.673,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34969,
    "c": 0.15739,
    "h": 303.6
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

primary
#4D167B
secondary
#71B03D
accent
#EC3B8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D167B

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

Preview Lab → · Contrast checker → · Palette generator →

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