#4B166B#4B166B

#4B166B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.140 H 309.0°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#4B166B
RGBrgb(75, 22, 107)
HSLhsl(277, 66%, 25%)
HSVhsv(277, 79%, 42%)
CMYKcmyk(29.9%, 79.4%, 0%, 58%)
CIE-LABlab(20.56, 39.73, -38.39)
CIE-LCHlch(20.56, 55.25, 315.98°)
OKLaboklab(33.3% 0.0882 -0.1089)
OKLCHoklch(33.3% 0.14 309)
XYZxyz(5.8419, 3.1313, 14.2037)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B166B #366B16
analogous
#21166B #4B166B #6B1660
triadic
#4B166B #6B4B16 #166B4B
tetradic
#4B166B #6B2116 #366B16 #16606B
square
#4B166B #6B2116 #366B16 #16606B
split-complementary
#4B166B #606B16 #166B21
monochromatic
#120519 #270C38 #4B166B #6F209E #922BD1

Accessibility & contrast

On white

12.91
#4B166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B166B
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B166B#FFFFFF#000000##FFFFFF
##4B166B1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#462B40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b166b;
/* rgb */ color: rgb(75, 22, 107);
/* oklch */ color: oklch(33.3% 0.140 309.0);
Tailwind
colors: {
  custom: {
    50: '#815a96',
    500: '#4b166b',
    950: '#000000',
  },
}
SCSS
$custom: #4b166b;
$custom-light: #815a96;
$custom-dark: #000000;
JSON
{
  "hex": "#4b166b",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 277.412,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33303,
    "c": 0.14014,
    "h": 309
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#4B166B
secondary
#62A13B
accent
#E93F7F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B166B

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

Preview Lab → · Contrast checker → · Palette generator →

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