#4C2B80#4C2B80

#4C2B80 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.137 H 297.3°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#4C2B80
RGBrgb(76, 43, 128)
HSLhsl(263, 50%, 34%)
HSVhsv(263, 66%, 50%)
CMYKcmyk(40.6%, 66.4%, 0%, 49.8%)
CIE-LABlab(26.22, 34.72, -42.65)
CIE-LCHlch(26.22, 54.99, 309.15°)
OKLaboklab(37.9% 0.0627 -0.1215)
OKLCHoklch(37.9% 0.137 297.3)
XYZxyz(7.7397, 4.8226, 20.9410)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2B80 #5F802B
analogous
#2B3480 #4C2B80 #762B80
triadic
#4C2B80 #804C2B #2B804C
tetradic
#4C2B80 #802B34 #5F802B #2B8076
square
#4C2B80 #802B34 #5F802B #2B8076
split-complementary
#4C2B80 #80762B #34802B
monochromatic
#160C24 #311C52 #4C2B80 #673AAE #875DC9

Accessibility & contrast

On white

10.69
#4C2B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4C2B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2B80
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2B80#FFFFFF#000000##FFFFFF
##4C2B801.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E83
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#3F3E51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2b80;
/* rgb */ color: rgb(76, 43, 128);
/* oklch */ color: oklch(37.9% 0.137 297.3);
Tailwind
colors: {
  custom: {
    50: '#8266a5',
    500: '#4c2b80',
    950: '#000000',
  },
}
SCSS
$custom: #4c2b80;
$custom-light: #8266a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2b80",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 128
  },
  "hsl": {
    "h": 263.294,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37902,
    "c": 0.13673,
    "h": 297.3
  },
  "luminance": 0.04823
}

Semantic roles & 50–950 ramp

primary
#4C2B80
secondary
#8DAE58
accent
#D94FA3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2B80

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

Preview Lab → · Contrast checker → · Palette generator →

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