#4C2EB0#4C2EB0

#4C2EB0 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.192 H 285.4°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#4C2EB0
RGBrgb(76, 46, 176)
HSLhsl(254, 59%, 44%)
HSVhsv(254, 74%, 69%)
CMYKcmyk(56.8%, 73.9%, 0%, 31%)
CIE-LABlab(30.94, 47.06, -64.34)
CIE-LCHlch(30.94, 79.72, 306.18°)
OKLaboklab(42.54% 0.0511 -0.1852)
OKLCHoklch(42.54% 0.192 285.4)
XYZxyz(11.7916, 6.6244, 41.7232)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EB0 #92B02E
analogous
#2E51B0 #4C2EB0 #8D2EB0
triadic
#4C2EB0 #B04C2E #2EB04C
tetradic
#4C2EB0 #B02E51 #92B02E #2EB08D
square
#4C2EB0 #B02E51 #92B02E #2EB08D
split-complementary
#4C2EB0 #B08D2E #51B02E
monochromatic
#22154F #37217F #4C2EB0 #6A4BD0 #927CDD

Accessibility & contrast

On white

9.03
#4C2EB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4C2EB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EB0
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EB0#FFFFFF#000000##FFFFFF
##4C2EB01.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#1B526C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2eb0;
/* rgb */ color: rgb(76, 46, 176);
/* oklch */ color: oklch(42.5% 0.192 285.4);
Tailwind
colors: {
  custom: {
    50: '#896ac9',
    500: '#4c2eb0',
    950: '#000000',
  },
}
SCSS
$custom: #4c2eb0;
$custom-light: #896ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2eb0",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 176
  },
  "hsl": {
    "h": 253.846,
    "s": 58.559,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42542,
    "c": 0.19216,
    "h": 285.4
  },
  "luminance": 0.06625
}

Semantic roles & 50–950 ramp

primary
#4C2EB0
secondary
#B3C575
accent
#E246BE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C2EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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