#4B166D#4B166D

#4B166D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.142 H 308.1°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#4B166D
RGBrgb(75, 22, 109)
HSLhsl(277, 66%, 26%)
HSVhsv(277, 80%, 43%)
CMYKcmyk(31.2%, 79.8%, 0%, 57.3%)
CIE-LABlab(20.73, 40.21, -39.43)
CIE-LCHlch(20.73, 56.31, 315.56°)
OKLaboklab(33.47% 0.0877 -0.112)
OKLCHoklch(33.47% 0.142 308.1)
XYZxyz(5.9483, 3.1739, 14.7643)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B166D #386D16
analogous
#20166D #4B166D #6D1663
triadic
#4B166D #6D4B16 #166D4B
tetradic
#4B166D #6D2016 #386D16 #16636D
square
#4B166D #6D2016 #386D16 #16636D
split-complementary
#4B166D #636D16 #166D20
monochromatic
#120519 #280C3A #4B166D #6E20A0 #912BD3

Accessibility & contrast

On white

12.85
#4B166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4B166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B166D
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B166D#FFFFFF#000000##FFFFFF
##4B166D1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#462B41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b166d;
/* rgb */ color: rgb(75, 22, 109);
/* oklch */ color: oklch(33.5% 0.142 308.1);
Tailwind
colors: {
  custom: {
    50: '#815a97',
    500: '#4b166d',
    950: '#000000',
  },
}
SCSS
$custom: #4b166d;
$custom-light: #815a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4b166d",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 276.552,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33471,
    "c": 0.14224,
    "h": 308.1
  },
  "luminance": 0.03174
}

Semantic roles & 50–950 ramp

primary
#4B166D
secondary
#64A33C
accent
#E93E81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B166D

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

Preview Lab → · Contrast checker → · Palette generator →

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