#4D166B#4D166B

#4D166B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.141 H 310.3°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#4D166B
RGBrgb(77, 22, 107)
HSLhsl(279, 66%, 25%)
HSVhsv(279, 79%, 42%)
CMYKcmyk(28%, 79.4%, 0%, 58%)
CIE-LABlab(20.88, 40.14, -37.87)
CIE-LCHlch(20.88, 55.18, 316.67°)
OKLaboklab(33.59% 0.0911 -0.1073)
OKLCHoklch(33.59% 0.141 310.3)
XYZxyz(6.0008, 3.2133, 14.2112)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D166B #346B16
analogous
#23166B #4D166B #6B165E
triadic
#4D166B #6B4D16 #166B4D
tetradic
#4D166B #6B2316 #346B16 #165E6B
square
#4D166B #6B2316 #346B16 #165E6B
split-complementary
#4D166B #5E6B16 #166B23
monochromatic
#120519 #280C38 #4D166B #72209E #962BD1

Accessibility & contrast

On white

12.78
#4D166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4D166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D166B
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D166B#FFFFFF#000000##FFFFFF
##4D166B1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#023369
Tritanopia (blue-blind)
#492A40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d166b;
/* rgb */ color: rgb(77, 22, 107);
/* oklch */ color: oklch(33.6% 0.141 310.3);
Tailwind
colors: {
  custom: {
    50: '#835a96',
    500: '#4d166b',
    950: '#000000',
  },
}
SCSS
$custom: #4d166b;
$custom-light: #835a96;
$custom-dark: #000000;
JSON
{
  "hex": "#4d166b",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 278.824,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33592,
    "c": 0.14077,
    "h": 310.3
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#4D166B
secondary
#5FA13B
accent
#E93F7B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D166B

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

Preview Lab → · Contrast checker → · Palette generator →

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