#4C2EBA#4C2EBA

#4C2EBA is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.5% C 0.204 H 283.8°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#4C2EBA
RGBrgb(76, 46, 186)
HSLhsl(253, 60%, 45%)
HSVhsv(253, 75%, 73%)
CMYKcmyk(59.1%, 75.3%, 0%, 27.1%)
CIE-LABlab(31.89, 50.00, -68.72)
CIE-LCHlch(31.89, 84.99, 306.04°)
OKLaboklab(43.5% 0.0487 -0.198)
OKLCHoklch(43.5% 0.204 283.8)
XYZxyz(12.8177, 7.0348, 47.1273)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EBA #9CBA2E
analogous
#2E56BA #4C2EBA #922EBA
triadic
#4C2EBA #BA4C2E #2EBA4C
tetradic
#4C2EBA #BA2E56 #9CBA2E #2EBA92
square
#4C2EBA #BA2E56 #9CBA2E #2EBA92
split-complementary
#4C2EBA #BA922E #56BA2E
monochromatic
#241658 #382289 #4C2EBA #6D51D4 #9682E0

Accessibility & contrast

On white

8.72
#4C2EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4C2EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EBA
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EBA#FFFFFF#000000##FFFFFF
##4C2EBA1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#035672
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c2eba;
/* rgb */ color: rgb(76, 46, 186);
/* oklch */ color: oklch(43.5% 0.204 283.8);
Tailwind
colors: {
  custom: {
    50: '#8b6ad0',
    500: '#4c2eba',
    950: '#000000',
  },
}
SCSS
$custom: #4c2eba;
$custom-light: #8b6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2eba",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 252.857,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.435,
    "c": 0.20394,
    "h": 283.8
  },
  "luminance": 0.07036
}

Semantic roles & 50–950 ramp

primary
#4C2EBA
secondary
#B8C97B
accent
#E344C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C2EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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