#4C2EA5#4C2EA5

#4C2EA5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.179 H 287.4°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4C2EA5
RGBrgb(76, 46, 165)
HSLhsl(255, 56%, 41%)
HSVhsv(255, 72%, 65%)
CMYKcmyk(53.9%, 72.1%, 0%, 35.3%)
CIE-LABlab(29.93, 43.81, -59.39)
CIE-LCHlch(29.93, 73.81, 306.42°)
OKLaboklab(41.52% 0.0536 -0.1707)
OKLCHoklch(41.52% 0.179 287.4)
XYZxyz(10.7470, 6.2066, 36.2217)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EA5 #87A52E
analogous
#2E4CA5 #4C2EA5 #882EA5
triadic
#4C2EA5 #A54C2E #2EA54C
tetradic
#4C2EA5 #A52E4C #87A52E #2EA588
square
#4C2EA5 #A52E4C #87A52E #2EA588
split-complementary
#4C2EA5 #A5882E #4CA52E
monochromatic
#201345 #362175 #4C2EA5 #6745CB #8E75D8

Accessibility & contrast

On white

9.37
#4C2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4C2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EA5
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EA5#FFFFFF#000000##FFFFFF
##4C2EA51.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#284E66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2ea5;
/* rgb */ color: rgb(76, 46, 165);
/* oklch */ color: oklch(41.5% 0.179 287.4);
Tailwind
colors: {
  custom: {
    50: '#876ac1',
    500: '#4c2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ea5;
$custom-light: #876ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ea5",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 255.126,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41519,
    "c": 0.17894,
    "h": 287.4
  },
  "luminance": 0.06207
}

Semantic roles & 50–950 ramp

primary
#4C2EA5
secondary
#ACC06F
accent
#E048B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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