#4B166F#4B166F

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

Color values

HEX#4B166F
RGBrgb(75, 22, 111)
HSLhsl(276, 67%, 26%)
HSVhsv(276, 80%, 44%)
CMYKcmyk(32.4%, 80.2%, 0%, 56.5%)
CIE-LABlab(20.89, 40.69, -40.45)
CIE-LCHlch(20.89, 57.38, 315.17°)
OKLaboklab(33.64% 0.0872 -0.115)
OKLCHoklch(33.64% 0.144 307.2)
XYZxyz(6.0572, 3.2174, 15.3378)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B166F #3A6F16
analogous
#1E166F #4B166F #6F1666
triadic
#4B166F #6F4B16 #166F4B
tetradic
#4B166F #6F1E16 #3A6F16 #16666F
square
#4B166F #6F1E16 #3A6F16 #16666F
split-complementary
#4B166F #666F16 #166F1E
monochromatic
#11051A #280C3C #4B166F #6E20A2 #902BD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4B166F#FFFFFF#000000##FFFFFF
##4B166F1.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)
#003171
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#452C42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b166f;
/* rgb */ color: rgb(75, 22, 111);
/* oklch */ color: oklch(33.6% 0.144 307.2);
Tailwind
colors: {
  custom: {
    50: '#815a99',
    500: '#4b166f',
    950: '#000000',
  },
}
SCSS
$custom: #4b166f;
$custom-light: #815a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4b166f",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 275.73,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33641,
    "c": 0.14435,
    "h": 307.2
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#4B166F
secondary
#66A53C
accent
#EA3E83
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B166F

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

Preview Lab → · Contrast checker → · Palette generator →

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