#4C2EB4#4C2EB4

#4C2EB4 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.197 H 284.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4C2EB4
RGBrgb(76, 46, 180)
HSLhsl(253, 59%, 44%)
HSVhsv(253, 74%, 71%)
CMYKcmyk(57.8%, 74.4%, 0%, 29.4%)
CIE-LABlab(31.31, 48.24, -66.11)
CIE-LCHlch(31.31, 81.84, 306.12°)
OKLaboklab(42.92% 0.0502 -0.1904)
OKLCHoklch(42.92% 0.197 284.8)
XYZxyz(12.1932, 6.7850, 43.8383)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EB4 #96B42E
analogous
#2E53B4 #4C2EB4 #8F2EB4
triadic
#4C2EB4 #B44C2E #2EB44C
tetradic
#4C2EB4 #B42E53 #96B42E #2EB48F
square
#4C2EB4 #B42E53 #96B42E #2EB48F
split-complementary
#4C2EB4 #B48F2E #53B42E
monochromatic
#231553 #372283 #4C2EB4 #6B4ED2 #947EDE

Accessibility & contrast

On white

8.91
#4C2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4C2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EB4
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EB4#FFFFFF#000000##FFFFFF
##4C2EB41.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#14536F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4c2eb4;
/* rgb */ color: rgb(76, 46, 180);
/* oklch */ color: oklch(42.9% 0.197 284.8);
Tailwind
colors: {
  custom: {
    50: '#8a6acc',
    500: '#4c2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #4c2eb4;
$custom-light: #8a6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2eb4",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 253.433,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42922,
    "c": 0.1969,
    "h": 284.8
  },
  "luminance": 0.06786
}

Semantic roles & 50–950 ramp

primary
#4C2EB4
secondary
#B5C777
accent
#E245BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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