#4C297E#4C297E

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

Color values

HEX#4C297E
RGBrgb(76, 41, 126)
HSLhsl(265, 51%, 33%)
HSVhsv(265, 67%, 49%)
CMYKcmyk(39.7%, 67.5%, 0%, 50.6%)
CIE-LABlab(25.65, 35.30, -42.32)
CIE-LCHlch(25.65, 55.11, 309.84°)
OKLaboklab(37.44% 0.0653 -0.1205)
OKLCHoklch(37.44% 0.137 298.4)
XYZxyz(7.5384, 4.6286, 20.2309)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C297E #5B7E29
analogous
#29307E #4C297E #76297E
triadic
#4C297E #7E4C29 #297E4C
tetradic
#4C297E #7E2930 #5B7E29 #297E76
square
#4C297E #7E2930 #5B7E29 #297E76
split-complementary
#4C297E #7E7629 #307E29
monochromatic
#140B22 #301A50 #4C297E #6838AC #8759C9

Accessibility & contrast

On white

10.90
#4C297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C297E
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C297E#FFFFFF#000000##FFFFFF
##4C297E1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#403C4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c297e;
/* rgb */ color: rgb(76, 41, 126);
/* oklch */ color: oklch(37.4% 0.137 298.4);
Tailwind
colors: {
  custom: {
    50: '#8265a4',
    500: '#4c297e',
    950: '#000000',
  },
}
SCSS
$custom: #4c297e;
$custom-light: #8265a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c297e",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 264.706,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37439,
    "c": 0.1371,
    "h": 298.4
  },
  "luminance": 0.04629
}

Semantic roles & 50–950 ramp

primary
#4C297E
secondary
#89AE55
accent
#DA4DA0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C297E

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

Preview Lab → · Contrast checker → · Palette generator →

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