#4D166E#4D166E

#4D166E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.144 H 309.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#4D166E
RGBrgb(77, 22, 110)
HSLhsl(278, 67%, 26%)
HSVhsv(278, 80%, 43%)
CMYKcmyk(30%, 80%, 0%, 56.9%)
CIE-LABlab(21.12, 40.84, -39.42)
CIE-LCHlch(21.12, 56.76, 316.02°)
OKLaboklab(33.84% 0.0905 -0.1119)
OKLCHoklch(33.84% 0.144 309)
XYZxyz(6.1614, 3.2775, 15.0569)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D166E #376E16
analogous
#21166E #4D166E #6E1663
triadic
#4D166E #6E4D16 #166E4D
tetradic
#4D166E #6E2116 #376E16 #16636E
square
#4D166E #6E2116 #376E16 #16636E
split-complementary
#4D166E #636E16 #166E21
monochromatic
#12051A #290C3B #4D166E #7120A1 #942AD4

Accessibility & contrast

On white

12.69
#4D166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4D166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D166E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D166E#FFFFFF#000000##FFFFFF
##4D166E1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#00336C
Tritanopia (blue-blind)
#482B41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d166e;
/* rgb */ color: rgb(77, 22, 110);
/* oklch */ color: oklch(33.8% 0.144 309.0);
Tailwind
colors: {
  custom: {
    50: '#835a98',
    500: '#4d166e',
    950: '#000000',
  },
}
SCSS
$custom: #4d166e;
$custom-light: #835a98;
$custom-dark: #000000;
JSON
{
  "hex": "#4d166e",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 277.5,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33841,
    "c": 0.14388,
    "h": 309
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#4D166E
secondary
#63A43C
accent
#EA3E7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D166E

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

Preview Lab → · Contrast checker → · Palette generator →

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