#4C277E#4C277E

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

Color values

HEX#4C277E
RGBrgb(76, 39, 126)
HSLhsl(266, 53%, 32%)
HSVhsv(266, 69%, 49%)
CMYKcmyk(39.7%, 69%, 0%, 50.6%)
CIE-LABlab(25.24, 36.42, -42.98)
CIE-LCHlch(25.24, 56.33, 310.28°)
OKLaboklab(37.15% 0.0677 -0.1225)
OKLCHoklch(37.15% 0.14 298.9)
XYZxyz(7.4710, 4.4938, 20.2084)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C277E #597E27
analogous
#272E7E #4C277E #77277E
triadic
#4C277E #7E4C27 #277E4C
tetradic
#4C277E #7E272E #597E27 #277E77
square
#4C277E #7E272E #597E27 #277E77
split-complementary
#4C277E #7E7727 #2E7E27
monochromatic
#140A21 #30194F #4C277E #6835AD #8755CA

Accessibility & contrast

On white

11.06
#4C277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4C277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C277E
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C277E#FFFFFF#000000##FFFFFF
##4C277E1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#403B4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c277e;
/* rgb */ color: rgb(76, 39, 126);
/* oklch */ color: oklch(37.1% 0.140 298.9);
Tailwind
colors: {
  custom: {
    50: '#8264a4',
    500: '#4c277e',
    950: '#000000',
  },
}
SCSS
$custom: #4c277e;
$custom-light: #8264a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c277e",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 265.517,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37145,
    "c": 0.13993,
    "h": 298.9
  },
  "luminance": 0.04494
}

Semantic roles & 50–950 ramp

primary
#4C277E
secondary
#87AF52
accent
#DC4C9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C277E

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

Preview Lab → · Contrast checker → · Palette generator →

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