#4C2EB3#4C2EB3

#4C2EB3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.196 H 284.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4C2EB3
RGBrgb(76, 46, 179)
HSLhsl(254, 59%, 44%)
HSVhsv(254, 74%, 70%)
CMYKcmyk(57.5%, 74.3%, 0%, 29.8%)
CIE-LABlab(31.22, 47.95, -65.67)
CIE-LCHlch(31.22, 81.31, 306.13°)
OKLaboklab(42.83% 0.0504 -0.1891)
OKLCHoklch(42.83% 0.196 284.9)
XYZxyz(12.0917, 6.7444, 43.3037)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EB3 #95B32E
analogous
#2E53B3 #4C2EB3 #8F2EB3
triadic
#4C2EB3 #B34C2E #2EB34C
tetradic
#4C2EB3 #B32E53 #95B32E #2EB38F
square
#4C2EB3 #B32E53 #95B32E #2EB38F
split-complementary
#4C2EB3 #B38F2E #53B32E
monochromatic
#231552 #372182 #4C2EB3 #6B4DD1 #937EDE

Accessibility & contrast

On white

8.94
#4C2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4C2EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EB3
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EB3#FFFFFF#000000##FFFFFF
##4C2EB31.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#16536E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2eb3;
/* rgb */ color: rgb(76, 46, 179);
/* oklch */ color: oklch(42.8% 0.196 284.9);
Tailwind
colors: {
  custom: {
    50: '#8a6acb',
    500: '#4c2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #4c2eb3;
$custom-light: #8a6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2eb3",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 253.534,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42827,
    "c": 0.19571,
    "h": 284.9
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#4C2EB3
secondary
#B4C676
accent
#E246BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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