#4C2D7B#4C2D7B

#4C2D7B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.127 H 298.4°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#4C2D7B
RGBrgb(76, 45, 123)
HSLhsl(264, 46%, 33%)
HSVhsv(264, 63%, 48%)
CMYKcmyk(38.2%, 63.4%, 0%, 51.8%)
CIE-LABlab(26.28, 32.14, -39.40)
CIE-LCHlch(26.28, 50.84, 309.21°)
OKLaboklab(37.83% 0.0606 -0.112)
OKLCHoklch(37.83% 0.127 298.4)
XYZxyz(7.4931, 4.8432, 19.2751)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D7B #5C7B2D
analogous
#2D357B #4C2D7B #732D7B
triadic
#4C2D7B #7B4C2D #2D7B4C
tetradic
#4C2D7B #7B2D35 #5C7B2D #2D7B73
square
#4C2D7B #7B2D35 #5C7B2D #2D7B73
split-complementary
#4C2D7B #7B732D #357B2D
monochromatic
#150C21 #301D4E #4C2D7B #683DA8 #875EC4

Accessibility & contrast

On white

10.67
#4C2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4C2D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2D7B
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D7B#FFFFFF#000000##FFFFFF
##4C2D7B1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#0D3D79
Tritanopia (blue-blind)
#413E4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2d7b;
/* rgb */ color: rgb(76, 45, 123);
/* oklch */ color: oklch(37.8% 0.127 298.4);
Tailwind
colors: {
  custom: {
    50: '#8267a2',
    500: '#4c2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d7b;
$custom-light: #8267a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d7b",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 263.846,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37827,
    "c": 0.1273,
    "h": 298.4
  },
  "luminance": 0.04843
}

Semantic roles & 50–950 ramp

primary
#4C2D7B
secondary
#8AAB59
accent
#D652A1
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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