#4C2EA8#4C2EA8

#4C2EA8 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.183 H 286.9°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4C2EA8
RGBrgb(76, 46, 168)
HSLhsl(255, 57%, 42%)
HSVhsv(255, 73%, 66%)
CMYKcmyk(54.8%, 72.6%, 0%, 34.1%)
CIE-LABlab(30.20, 44.70, -60.76)
CIE-LCHlch(30.20, 75.43, 306.34°)
OKLaboklab(41.8% 0.0529 -0.1747)
OKLCHoklch(41.8% 0.183 286.9)
XYZxyz(11.0233, 6.3171, 37.6767)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EA8 #8AA82E
analogous
#2E4DA8 #4C2EA8 #892EA8
triadic
#4C2EA8 #A84C2E #2EA84C
tetradic
#4C2EA8 #A82E4D #8AA82E #2EA889
square
#4C2EA8 #A82E4D #8AA82E #2EA889
split-complementary
#4C2EA8 #A8892E #4DA82E
monochromatic
#211448 #362178 #4C2EA8 #6847CD #8F77DA

Accessibility & contrast

On white

9.28
#4C2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4C2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EA8
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EA8#FFFFFF#000000##FFFFFF
##4C2EA81.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#254F68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2ea8;
/* rgb */ color: rgb(76, 46, 168);
/* oklch */ color: oklch(41.8% 0.183 286.9);
Tailwind
colors: {
  custom: {
    50: '#886ac3',
    500: '#4c2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ea8;
$custom-light: #886ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ea8",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 254.754,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41795,
    "c": 0.18257,
    "h": 286.9
  },
  "luminance": 0.06318
}

Semantic roles & 50–950 ramp

primary
#4C2EA8
secondary
#AEC270
accent
#E048BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4C2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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