#4C2F76#4C2F76

#4C2F76 is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.8% C 0.118 H 299.6°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#4C2F76
RGBrgb(76, 47, 118)
HSLhsl(265, 43%, 32%)
HSVhsv(265, 60%, 46%)
CMYKcmyk(35.6%, 60.2%, 0%, 53.7%)
CIE-LABlab(26.38, 29.52, -36.07)
CIE-LCHlch(26.38, 46.61, 309.30°)
OKLaboklab(37.79% 0.058 -0.1022)
OKLCHoklch(37.79% 0.118 299.6)
XYZxyz(7.2662, 4.8775, 17.6947)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F76 #59762F
analogous
#2F3676 #4C2F76 #6F2F76
triadic
#4C2F76 #764C2F #2F764C
tetradic
#4C2F76 #762F36 #59762F #2F766F
square
#4C2F76 #762F36 #59762F #2F766F
split-complementary
#4C2F76 #766F2F #36762F
monochromatic
#140C1E #301E4A #4C2F76 #6840A2 #8760C0

Accessibility & contrast

On white

10.63
#4C2F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4C2F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F76
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F76#FFFFFF#000000##FFFFFF
##4C2F761.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3E78
Deuteranopia (green-blind)
#193E74
Tritanopia (blue-blind)
#433E4D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2f76;
/* rgb */ color: rgb(76, 47, 118);
/* oklch */ color: oklch(37.8% 0.118 299.6);
Tailwind
colors: {
  custom: {
    50: '#81699e',
    500: '#4c2f76',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f76;
$custom-light: #81699e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f76",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 264.507,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37786,
    "c": 0.11753,
    "h": 299.6
  },
  "luminance": 0.04878
}

Semantic roles & 50–950 ramp

primary
#4C2F76
secondary
#87A75A
accent
#D3559F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4C2F76

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

Preview Lab → · Contrast checker → · Palette generator →

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