#4C2A7C#4C2A7C

#4C2A7C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.133 H 298.9°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#4C2A7C
RGBrgb(76, 42, 124)
HSLhsl(265, 49%, 33%)
HSVhsv(265, 66%, 49%)
CMYKcmyk(38.7%, 66.1%, 0%, 51.4%)
CIE-LABlab(25.71, 34.17, -40.96)
CIE-LCHlch(25.71, 53.34, 309.84°)
OKLaboklab(37.43% 0.0643 -0.1166)
OKLCHoklch(37.43% 0.133 298.9)
XYZxyz(7.4456, 4.6476, 19.5697)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A7C #5A7C2A
analogous
#2A317C #4C2A7C #752A7C
triadic
#4C2A7C #7C4C2A #2A7C4C
tetradic
#4C2A7C #7C2A31 #5A7C2A #2A7C75
square
#4C2A7C #7C2A31 #5A7C2A #2A7C75
split-complementary
#4C2A7C #7C752A #317C2A
monochromatic
#140B21 #301B4E #4C2A7C #6839AA #8759C7

Accessibility & contrast

On white

10.88
#4C2A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2A7C
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A7C#FFFFFF#000000##FFFFFF
##4C2A7C1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#023C7A
Tritanopia (blue-blind)
#413C4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c2a7c;
/* rgb */ color: rgb(76, 42, 124);
/* oklch */ color: oklch(37.4% 0.133 298.9);
Tailwind
colors: {
  custom: {
    50: '#8266a2',
    500: '#4c2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a7c;
$custom-light: #8266a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a7c",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 264.878,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37431,
    "c": 0.13311,
    "h": 298.9
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

primary
#4C2A7C
secondary
#88AD55
accent
#D94FA0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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