#4C276A#4C276A

#4C276A is a dark, moderate violet. Relative luminance 0.040; OKLCH L 35.6% C 0.115 H 307.0°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4C276A
RGBrgb(76, 39, 106)
HSLhsl(273, 46%, 28%)
HSVhsv(273, 63%, 42%)
CMYKcmyk(28.3%, 63.2%, 0%, 58.4%)
CIE-LABlab(23.76, 31.03, -32.57)
CIE-LCHlch(23.76, 44.99, 313.61°)
OKLaboklab(35.61% 0.0692 -0.0919)
OKLCHoklch(35.61% 0.115 307)
XYZxyz(6.3070, 4.0282, 14.0781)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C276A #456A27
analogous
#2A276A #4C276A #6A2766
triadic
#4C276A #6A4C27 #276A4C
tetradic
#4C276A #6A2A27 #456A27 #27666A
square
#4C276A #6A2A27 #456A27 #27666A
split-complementary
#4C276A #666A27 #276A2A
monochromatic
#100816 #2C173D #4C276A #6C3797 #8C4EBE

Accessibility & contrast

On white

11.63
#4C276A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4C276A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C276A
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C276A#FFFFFF#000000##FFFFFF
##4C276A1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09376C
Deuteranopia (green-blind)
#1B3968
Tritanopia (blue-blind)
#473444
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c276a;
/* rgb */ color: rgb(76, 39, 106);
/* oklch */ color: oklch(35.6% 0.115 307.0);
Tailwind
colors: {
  custom: {
    50: '#816395',
    500: '#4c276a',
    950: '#000000',
  },
}
SCSS
$custom: #4c276a;
$custom-light: #816395;
$custom-dark: #000000;
JSON
{
  "hex": "#4c276a",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 273.134,
    "s": 46.207,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35607,
    "c": 0.11503,
    "h": 307
  },
  "luminance": 0.04028
}

Semantic roles & 50–950 ramp

primary
#4C276A
secondary
#729D50
accent
#D6528D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A050D
muted
#7C7A7E

Preview Lab

Preview with #4C276A

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

Preview Lab → · Contrast checker → · Palette generator →

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