#4C2E97#4C2E97

#4C2E97 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.162 H 290.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4C2E97
RGBrgb(76, 46, 151)
HSLhsl(257, 53%, 39%)
HSVhsv(257, 70%, 59%)
CMYKcmyk(49.7%, 69.5%, 0%, 40.8%)
CIE-LABlab(28.71, 39.68, -52.88)
CIE-LCHlch(28.71, 66.11, 306.88°)
OKLaboklab(40.27% 0.0562 -0.1516)
OKLCHoklch(40.27% 0.162 290.4)
XYZxyz(9.5418, 5.7245, 29.8743)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E97 #79972E
analogous
#2E4497 #4C2E97 #802E97
triadic
#4C2E97 #974C2E #2E974C
tetradic
#4C2E97 #972E44 #79972E #2E9780
square
#4C2E97 #972E44 #79972E #2E9780
split-complementary
#4C2E97 #97802E #44972E
monochromatic
#1D1139 #342068 #4C2E97 #643EC4 #8A6DD2

Accessibility & contrast

On white

9.79
#4C2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4C2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2E97
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E97#FFFFFF#000000##FFFFFF
##4C2E971.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#33485F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2e97;
/* rgb */ color: rgb(76, 46, 151);
/* oklch */ color: oklch(40.3% 0.162 290.4);
Tailwind
colors: {
  custom: {
    50: '#8569b6',
    500: '#4c2e97',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e97;
$custom-light: #8569b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e97",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 257.143,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40271,
    "c": 0.16171,
    "h": 290.4
  },
  "luminance": 0.05725
}

Semantic roles & 50–950 ramp

primary
#4C2E97
secondary
#A2BA67
accent
#DD4BB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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