#4C277F#4C277F

#4C277F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.141 H 298.6°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#4C277F
RGBrgb(76, 39, 127)
HSLhsl(265, 53%, 33%)
HSVhsv(265, 69%, 50%)
CMYKcmyk(40.2%, 69.3%, 0%, 50.2%)
CIE-LABlab(25.32, 36.70, -43.48)
CIE-LCHlch(25.32, 56.90, 310.16°)
OKLaboklab(37.23% 0.0675 -0.124)
OKLCHoklch(37.23% 0.141 298.6)
XYZxyz(7.5358, 4.5197, 20.5499)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C277F #5A7F27
analogous
#272E7F #4C277F #78277F
triadic
#4C277F #7F4C27 #277F4C
tetradic
#4C277F #7F272E #5A7F27 #277F78
square
#4C277F #7F272E #5A7F27 #277F78
split-complementary
#4C277F #7F7827 #2E7F27
monochromatic
#140A21 #301950 #4C277F #6835AE #8755CB

Accessibility & contrast

On white

11.03
#4C277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C277F
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C277F#FFFFFF#000000##FFFFFF
##4C277F1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#403C4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c277f;
/* rgb */ color: rgb(76, 39, 127);
/* oklch */ color: oklch(37.2% 0.141 298.6);
Tailwind
colors: {
  custom: {
    50: '#8364a5',
    500: '#4c277f',
    950: '#000000',
  },
}
SCSS
$custom: #4c277f;
$custom-light: #8364a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c277f",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 265.227,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37227,
    "c": 0.14115,
    "h": 298.6
  },
  "luminance": 0.0452
}

Semantic roles & 50–950 ramp

primary
#4C277F
secondary
#88B052
accent
#DC4B9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C277F

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

Preview Lab → · Contrast checker → · Palette generator →

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