#4C166E#4C166E

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

Color values

HEX#4C166E
RGBrgb(76, 22, 110)
HSLhsl(277, 67%, 26%)
HSVhsv(277, 80%, 43%)
CMYKcmyk(30.9%, 80%, 0%, 56.9%)
CIE-LABlab(20.97, 40.64, -39.68)
CIE-LCHlch(20.97, 56.80, 315.69°)
OKLaboklab(33.7% 0.089 -0.1127)
OKLCHoklch(33.7% 0.144 308.3)
XYZxyz(6.0813, 3.2362, 15.0531)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C166E #386E16
analogous
#20166E #4C166E #6E1664
triadic
#4C166E #6E4C16 #166E4C
tetradic
#4C166E #6E2016 #386E16 #16646E
square
#4C166E #6E2016 #386E16 #16646E
split-complementary
#4C166E #646E16 #166E20
monochromatic
#12051A #290C3B #4C166E #6F20A1 #922AD4

Accessibility & contrast

On white

12.75
#4C166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4C166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C166E
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C166E#FFFFFF#000000##FFFFFF
##4C166E1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c166e;
/* rgb */ color: rgb(76, 22, 110);
/* oklch */ color: oklch(33.7% 0.144 308.3);
Tailwind
colors: {
  custom: {
    50: '#825a98',
    500: '#4c166e',
    950: '#000000',
  },
}
SCSS
$custom: #4c166e;
$custom-light: #825a98;
$custom-dark: #000000;
JSON
{
  "hex": "#4c166e",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 276.818,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33698,
    "c": 0.14358,
    "h": 308.3
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#4C166E
secondary
#64A43C
accent
#EA3E80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C166E

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

Preview Lab → · Contrast checker → · Palette generator →

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