#4D167D#4D167D

#4D167D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.159 H 302.8°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#4D167D
RGBrgb(77, 22, 125)
HSLhsl(272, 70%, 29%)
HSVhsv(272, 82%, 49%)
CMYKcmyk(38.4%, 82.4%, 0%, 51%)
CIE-LABlab(22.42, 44.48, -46.94)
CIE-LCHlch(22.42, 64.66, 313.46°)
OKLaboklab(35.15% 0.0865 -0.134)
OKLCHoklch(35.15% 0.159 302.8)
XYZxyz(7.0483, 3.6323, 19.7278)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D167D #467D16
analogous
#1A167D #4D167D #7D167A
triadic
#4D167D #7D4D16 #167D4D
tetradic
#4D167D #7D1A16 #467D16 #167A7D
square
#4D167D #7D1A16 #467D16 #167A7D
split-complementary
#4D167D #7A7D16 #167D1A
monochromatic
#10051A #2D0D49 #4D167D #6D1FB1 #8C32DB

Accessibility & contrast

On white

12.16
#4D167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D167D
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D167D#FFFFFF#000000##FFFFFF
##4D167D1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#43324A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d167d;
/* rgb */ color: rgb(77, 22, 125);
/* oklch */ color: oklch(35.1% 0.159 302.8);
Tailwind
colors: {
  custom: {
    50: '#845ba3',
    500: '#4d167d',
    950: '#000000',
  },
}
SCSS
$custom: #4d167d;
$custom-light: #845ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d167d",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 272.039,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35149,
    "c": 0.15946,
    "h": 302.8
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#4D167D
secondary
#73B23D
accent
#ED3B8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D167D

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

Preview Lab → · Contrast checker → · Palette generator →

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