#4C2B94#4C2B94

#4C2B94 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.162 H 291.7°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4C2B94
RGBrgb(76, 43, 148)
HSLhsl(259, 55%, 37%)
HSVhsv(259, 71%, 58%)
CMYKcmyk(48.6%, 70.9%, 0%, 42%)
CIE-LABlab(27.85, 40.46, -52.44)
CIE-LCHlch(27.85, 66.23, 307.66°)
OKLaboklab(39.58% 0.0598 -0.1503)
OKLCHoklch(39.58% 0.162 291.7)
XYZxyz(9.1882, 5.4020, 28.5698)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2B94 #73942B
analogous
#2B3F94 #4C2B94 #802B94
triadic
#4C2B94 #944C2B #2B944C
tetradic
#4C2B94 #942B3F #73942B #2B9480
square
#4C2B94 #942B3F #73942B #2B9480
split-complementary
#4C2B94 #94802B #3F942B
monochromatic
#1B0F35 #341D65 #4C2B94 #6439C3 #8967D3

Accessibility & contrast

On white

10.09
#4C2B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4C2B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2B94
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2B94#FFFFFF#000000##FFFFFF
##4C2B941.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#35465C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c2b94;
/* rgb */ color: rgb(76, 43, 148);
/* oklch */ color: oklch(39.6% 0.162 291.7);
Tailwind
colors: {
  custom: {
    50: '#8567b4',
    500: '#4c2b94',
    950: '#000000',
  },
}
SCSS
$custom: #4c2b94;
$custom-light: #8567b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2b94",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 148
  },
  "hsl": {
    "h": 258.857,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3958,
    "c": 0.16174,
    "h": 291.7
  },
  "luminance": 0.05402
}

Semantic roles & 50–950 ramp

primary
#4C2B94
secondary
#9EB962
accent
#DE49B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2B94

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

Preview Lab → · Contrast checker → · Palette generator →

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