#4C277D#4C277D

#4C277D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.139 H 299.3°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#4C277D
RGBrgb(76, 39, 125)
HSLhsl(266, 52%, 32%)
HSVhsv(266, 69%, 49%)
CMYKcmyk(39.2%, 68.8%, 0%, 51%)
CIE-LABlab(25.16, 36.14, -42.47)
CIE-LCHlch(25.16, 55.77, 310.40°)
OKLaboklab(37.06% 0.0678 -0.121)
OKLCHoklch(37.06% 0.139 299.3)
XYZxyz(7.4068, 4.4681, 19.8703)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C277D #587D27
analogous
#272D7D #4C277D #77277D
triadic
#4C277D #7D4C27 #277D4C
tetradic
#4C277D #7D272D #587D27 #277D77
square
#4C277D #7D272D #587D27 #277D77
split-complementary
#4C277D #7D7727 #2D7D27
monochromatic
#130A20 #30184E #4C277D #6836AC #8755CA

Accessibility & contrast

On white

11.09
#4C277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4C277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C277D
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C277D#FFFFFF#000000##FFFFFF
##4C277D1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#413B4E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c277d;
/* rgb */ color: rgb(76, 39, 125);
/* oklch */ color: oklch(37.1% 0.139 299.3);
Tailwind
colors: {
  custom: {
    50: '#8264a3',
    500: '#4c277d',
    950: '#000000',
  },
}
SCSS
$custom: #4c277d;
$custom-light: #8264a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c277d",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 265.814,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37063,
    "c": 0.13869,
    "h": 299.3
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#4C277D
secondary
#86AF51
accent
#DC4C9E
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C277D

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

Preview Lab → · Contrast checker → · Palette generator →

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