#4C2EB7#4C2EB7

#4C2EB7 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.2% C 0.200 H 284.3°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4C2EB7
RGBrgb(76, 46, 183)
HSLhsl(253, 60%, 45%)
HSVhsv(253, 75%, 72%)
CMYKcmyk(58.5%, 74.9%, 0%, 28.2%)
CIE-LABlab(31.60, 49.12, -67.42)
CIE-LCHlch(31.60, 83.42, 306.08°)
OKLaboklab(43.21% 0.0494 -0.1942)
OKLCHoklch(43.21% 0.2 284.3)
XYZxyz(12.5021, 6.9086, 45.4653)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EB7 #99B72E
analogous
#2E54B7 #4C2EB7 #912EB7
triadic
#4C2EB7 #B74C2E #2EB74C
tetradic
#4C2EB7 #B72E54 #99B72E #2EB791
square
#4C2EB7 #B72E54 #99B72E #2EB791
split-complementary
#4C2EB7 #B7912E #54B72E
monochromatic
#231555 #382286 #4C2EB7 #6C4FD3 #9580DF

Accessibility & contrast

On white

8.82
#4C2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4C2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EB7
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EB7#FFFFFF#000000##FFFFFF
##4C2EB71.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0046B4
Tritanopia (blue-blind)
#0D5470
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4c2eb7;
/* rgb */ color: rgb(76, 46, 183);
/* oklch */ color: oklch(43.2% 0.200 284.3);
Tailwind
colors: {
  custom: {
    50: '#8a6ace',
    500: '#4c2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #4c2eb7;
$custom-light: #8a6ace;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2eb7",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 253.139,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4321,
    "c": 0.20043,
    "h": 284.3
  },
  "luminance": 0.06909
}

Semantic roles & 50–950 ramp

primary
#4C2EB7
secondary
#B7C879
accent
#E345C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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