#4C117B#4C117B

#4C117B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.162 H 303.6°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#4C117B
RGBrgb(76, 17, 123)
HSLhsl(273, 76%, 27%)
HSVhsv(273, 86%, 48%)
CMYKcmyk(38.2%, 86.2%, 0%, 51.8%)
CIE-LABlab(21.46, 45.65, -47.23)
CIE-LCHlch(21.46, 65.69, 314.02°)
OKLaboklab(34.4% 0.0894 -0.1348)
OKLCHoklch(34.4% 0.162 303.6)
XYZxyz(6.7552, 3.3675, 19.0292)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C117B #407B11
analogous
#17117B #4C117B #7B1175
triadic
#4C117B #7B4C11 #117B4C
tetradic
#4C117B #7B1711 #407B11 #11757B
square
#4C117B #7B1711 #407B11 #11757B
split-complementary
#4C117B #757B11 #117B17
monochromatic
#11041B #2B0A45 #4C117B #6D18B1 #8E25E1

Accessibility & contrast

On white

12.55
#4C117B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4C117B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C117B
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C117B#FFFFFF#000000##FFFFFF
##4C117B1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#422F48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c117b;
/* rgb */ color: rgb(76, 17, 123);
/* oklch */ color: oklch(34.4% 0.162 303.6);
Tailwind
colors: {
  custom: {
    50: '#8459a2',
    500: '#4c117b',
    950: '#000000',
  },
}
SCSS
$custom: #4c117b;
$custom-light: #8459a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c117b",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 123
  },
  "hsl": {
    "h": 273.396,
    "s": 75.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34397,
    "c": 0.1618,
    "h": 303.6
  },
  "luminance": 0.03367
}

Semantic roles & 50–950 ramp

primary
#4C117B
secondary
#6DB136
accent
#F23589
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C117B

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

Preview Lab → · Contrast checker → · Palette generator →

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