#4B166A#4B166A

#4B166A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.139 H 309.4°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#4B166A
RGBrgb(75, 22, 106)
HSLhsl(278, 66%, 25%)
HSVhsv(278, 79%, 42%)
CMYKcmyk(29.2%, 79.2%, 0%, 58.4%)
CIE-LABlab(20.48, 39.49, -37.87)
CIE-LCHlch(20.48, 54.71, 316.19°)
OKLaboklab(33.22% 0.0884 -0.1074)
OKLCHoklch(33.22% 0.139 309.4)
XYZxyz(5.7896, 3.1104, 13.9283)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B166A #356A16
analogous
#21166A #4B166A #6A165F
triadic
#4B166A #6A4B16 #166A4B
tetradic
#4B166A #6A2116 #356A16 #165F6A
square
#4B166A #6A2116 #356A16 #165F6A
split-complementary
#4B166A #5F6A16 #166A21
monochromatic
#120519 #270B37 #4B166A #6F219D #932BCF

Accessibility & contrast

On white

12.95
#4B166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4B166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B166A
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B166A#FFFFFF#000000##FFFFFF
##4B166A1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#003268
Tritanopia (blue-blind)
#462A3F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4b166a;
/* rgb */ color: rgb(75, 22, 106);
/* oklch */ color: oklch(33.2% 0.139 309.4);
Tailwind
colors: {
  custom: {
    50: '#815995',
    500: '#4b166a',
    950: '#000000',
  },
}
SCSS
$custom: #4b166a;
$custom-light: #815995;
$custom-dark: #000000;
JSON
{
  "hex": "#4b166a",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 277.857,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.13909,
    "h": 309.4
  },
  "luminance": 0.0311
}

Semantic roles & 50–950 ramp

primary
#4B166A
secondary
#61A03B
accent
#E93F7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B166A

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

Preview Lab → · Contrast checker → · Palette generator →

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