#4C276F#4C276F

#4C276F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.121 H 304.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#4C276F
RGBrgb(76, 39, 111)
HSLhsl(271, 48%, 29%)
HSVhsv(271, 65%, 44%)
CMYKcmyk(31.5%, 64.9%, 0%, 56.5%)
CIE-LABlab(24.11, 32.34, -35.24)
CIE-LCHlch(24.11, 47.83, 312.55°)
OKLaboklab(35.97% 0.069 -0.0997)
OKLCHoklch(35.97% 0.121 304.7)
XYZxyz(6.5746, 4.1353, 15.4877)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C276F #4A6F27
analogous
#28276F #4C276F #6F276E
triadic
#4C276F #6F4C27 #276F4C
tetradic
#4C276F #6F2827 #4A6F27 #276E6F
square
#4C276F #6F2827 #4A6F27 #276E6F
split-complementary
#4C276F #6E6F27 #276F28
monochromatic
#100817 #2D1742 #4C276F #6B379C #8A4FC1

Accessibility & contrast

On white

11.49
#4C276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4C276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C276F
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C276F#FFFFFF#000000##FFFFFF
##4C276F1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#16396D
Tritanopia (blue-blind)
#463647
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c276f;
/* rgb */ color: rgb(76, 39, 111);
/* oklch */ color: oklch(36.0% 0.121 304.7);
Tailwind
colors: {
  custom: {
    50: '#816399',
    500: '#4c276f',
    950: '#000000',
  },
}
SCSS
$custom: #4c276f;
$custom-light: #816399;
$custom-dark: #000000;
JSON
{
  "hex": "#4c276f",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 270.833,
    "s": 48,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35973,
    "c": 0.12129,
    "h": 304.7
  },
  "luminance": 0.04135
}

Semantic roles & 50–950 ramp

primary
#4C276F
secondary
#78A250
accent
#D85092
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4C276F

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

Preview Lab → · Contrast checker → · Palette generator →

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