#4B166E#4B166E

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

Color values

HEX#4B166E
RGBrgb(75, 22, 110)
HSLhsl(276, 67%, 26%)
HSVhsv(276, 80%, 43%)
CMYKcmyk(31.8%, 80%, 0%, 56.9%)
CIE-LABlab(20.81, 40.45, -39.94)
CIE-LCHlch(20.81, 56.84, 315.36°)
OKLaboklab(33.56% 0.0875 -0.1135)
OKLCHoklch(33.56% 0.143 307.6)
XYZxyz(6.0024, 3.1955, 15.0494)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B166E #396E16
analogous
#1F166E #4B166E #6E1665
triadic
#4B166E #6E4B16 #166E4B
tetradic
#4B166E #6E1F16 #396E16 #16656E
square
#4B166E #6E1F16 #396E16 #16656E
split-complementary
#4B166E #656E16 #166E1F
monochromatic
#11051A #280C3B #4B166E #6E20A1 #912AD4

Accessibility & contrast

On white

12.81
#4B166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B166E
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B166E#FFFFFF#000000##FFFFFF
##4B166E1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#452C41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b166e;
/* rgb */ color: rgb(75, 22, 110);
/* oklch */ color: oklch(33.6% 0.143 307.6);
Tailwind
colors: {
  custom: {
    50: '#815a98',
    500: '#4b166e',
    950: '#000000',
  },
}
SCSS
$custom: #4b166e;
$custom-light: #815a98;
$custom-dark: #000000;
JSON
{
  "hex": "#4b166e",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 276.136,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33556,
    "c": 0.14329,
    "h": 307.6
  },
  "luminance": 0.03195
}

Semantic roles & 50–950 ramp

primary
#4B166E
secondary
#65A43C
accent
#EA3E82
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B166E

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

Preview Lab → · Contrast checker → · Palette generator →

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