#4C157C#4C157C

#4C157C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.159 H 302.7°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#4C157C
RGBrgb(76, 21, 124)
HSLhsl(272, 71%, 28%)
HSVhsv(272, 83%, 49%)
CMYKcmyk(38.7%, 83.1%, 0%, 51.4%)
CIE-LABlab(22.05, 44.45, -46.91)
CIE-LCHlch(22.05, 64.63, 313.46°)
OKLaboklab(34.83% 0.0861 -0.1339)
OKLCHoklch(34.83% 0.159 302.7)
XYZxyz(6.8859, 3.5281, 19.3831)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C157C #457C15
analogous
#19157C #4C157C #7C1578
triadic
#4C157C #7C4C15 #157C4C
tetradic
#4C157C #7C1915 #457C15 #15787C
square
#4C157C #7C1915 #457C15 #15787C
split-complementary
#4C157C #787C15 #157C19
monochromatic
#10041A #2C0C48 #4C157C #6C1EB0 #8C30DC

Accessibility & contrast

On white

12.31
#4C157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4C157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C157C
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C157C#FFFFFF#000000##FFFFFF
##4C157C1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#423149
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c157c;
/* rgb */ color: rgb(76, 21, 124);
/* oklch */ color: oklch(34.8% 0.159 302.7);
Tailwind
colors: {
  custom: {
    50: '#835aa3',
    500: '#4c157c',
    950: '#000000',
  },
}
SCSS
$custom: #4c157c;
$custom-light: #835aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c157c",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 272.039,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34832,
    "c": 0.1592,
    "h": 302.7
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#4C157C
secondary
#72B13C
accent
#EE3A8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C157C

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

Preview Lab → · Contrast checker → · Palette generator →

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