#4C2EB2#4C2EB2

#4C2EB2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.195 H 285.1°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4C2EB2
RGBrgb(76, 46, 178)
HSLhsl(254, 59%, 44%)
HSVhsv(254, 74%, 70%)
CMYKcmyk(57.3%, 74.2%, 0%, 30.2%)
CIE-LABlab(31.12, 47.65, -65.23)
CIE-LCHlch(31.12, 80.78, 306.15°)
OKLaboklab(42.73% 0.0507 -0.1878)
OKLCHoklch(42.73% 0.195 285.1)
XYZxyz(11.9909, 6.7041, 42.7730)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EB2 #94B22E
analogous
#2E52B2 #4C2EB2 #8E2EB2
triadic
#4C2EB2 #B24C2E #2EB24C
tetradic
#4C2EB2 #B22E52 #94B22E #2EB28E
square
#4C2EB2 #B22E52 #94B22E #2EB28E
split-complementary
#4C2EB2 #B28E2E #52B22E
monochromatic
#221551 #372181 #4C2EB2 #6A4CD1 #937DDD

Accessibility & contrast

On white

8.97
#4C2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4C2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EB2
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EB2#FFFFFF#000000##FFFFFF
##4C2EB21.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#18536E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2eb2;
/* rgb */ color: rgb(76, 46, 178);
/* oklch */ color: oklch(42.7% 0.195 285.1);
Tailwind
colors: {
  custom: {
    50: '#896aca',
    500: '#4c2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2eb2;
$custom-light: #896aca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2eb2",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 253.636,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42732,
    "c": 0.19453,
    "h": 285.1
  },
  "luminance": 0.06705
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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