#4C2A7D#4C2A7D

#4C2A7D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.5% C 0.134 H 298.5°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#4C2A7D
RGBrgb(76, 42, 125)
HSLhsl(265, 50%, 33%)
HSVhsv(265, 66%, 49%)
CMYKcmyk(39.2%, 66.4%, 0%, 51%)
CIE-LABlab(25.78, 34.45, -41.47)
CIE-LCHlch(25.78, 53.91, 309.72°)
OKLaboklab(37.51% 0.0642 -0.1181)
OKLCHoklch(37.51% 0.134 298.5)
XYZxyz(7.5092, 4.6730, 19.9044)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A7D #5B7D2A
analogous
#2A327D #4C2A7D #752A7D
triadic
#4C2A7D #7D4C2A #2A7D4C
tetradic
#4C2A7D #7D2A32 #5B7D2A #2A7D75
square
#4C2A7D #7D2A32 #5B7D2A #2A7D75
split-complementary
#4C2A7D #7D752A #327D2A
monochromatic
#140B21 #301B4F #4C2A7D #6839AB #875AC8

Accessibility & contrast

On white

10.85
#4C2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4C2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A7D
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A7D#FFFFFF#000000##FFFFFF
##4C2A7D1.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#413D4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c2a7d;
/* rgb */ color: rgb(76, 42, 125);
/* oklch */ color: oklch(37.5% 0.134 298.5);
Tailwind
colors: {
  custom: {
    50: '#8266a3',
    500: '#4c2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a7d;
$custom-light: #8266a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a7d",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 264.578,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3751,
    "c": 0.13438,
    "h": 298.5
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#4C2A7D
secondary
#89AD56
accent
#D94FA0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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