#4C156E#4C156E

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

Color values

HEX#4C156E
RGBrgb(76, 21, 110)
HSLhsl(277, 68%, 26%)
HSVhsv(277, 81%, 43%)
CMYKcmyk(30.9%, 80.9%, 0%, 56.9%)
CIE-LABlab(20.82, 41.06, -39.91)
CIE-LCHlch(20.82, 57.26, 315.81°)
OKLaboklab(33.6% 0.0899 -0.1134)
OKLCHoklch(33.6% 0.145 308.4)
XYZxyz(6.0625, 3.1987, 15.0469)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C156E #376E15
analogous
#20156E #4C156E #6E1563
triadic
#4C156E #6E4C15 #156E4C
tetradic
#4C156E #6E2015 #376E15 #15636E
square
#4C156E #6E2015 #376E15 #15636E
split-complementary
#4C156E #636E15 #156E20
monochromatic
#12051A #280B3B #4C156E #701FA1 #9329D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C156E#FFFFFF#000000##FFFFFF
##4C156E1.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)
#00336C
Tritanopia (blue-blind)
#472B41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c156e;
/* rgb */ color: rgb(76, 21, 110);
/* oklch */ color: oklch(33.6% 0.145 308.4);
Tailwind
colors: {
  custom: {
    50: '#825998',
    500: '#4c156e',
    950: '#000000',
  },
}
SCSS
$custom: #4c156e;
$custom-light: #825998;
$custom-dark: #000000;
JSON
{
  "hex": "#4c156e",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 277.079,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33597,
    "c": 0.14471,
    "h": 308.4
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#4C156E
secondary
#63A43A
accent
#EB3D7F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C156E

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

Preview Lab → · Contrast checker → · Palette generator →

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