#4C2C83#4C2C83

#4C2C83 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.139 H 296.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4C2C83
RGBrgb(76, 44, 131)
HSLhsl(262, 50%, 34%)
HSVhsv(262, 66%, 51%)
CMYKcmyk(42%, 66.4%, 0%, 48.6%)
CIE-LABlab(26.67, 35.00, -43.81)
CIE-LCHlch(26.67, 56.07, 308.62°)
OKLaboklab(38.3% 0.0612 -0.1249)
OKLCHoklch(38.3% 0.139 296.1)
XYZxyz(7.9768, 4.9764, 22.0086)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2C83 #63832C
analogous
#2C3883 #4C2C83 #782C83
triadic
#4C2C83 #834C2C #2C834C
tetradic
#4C2C83 #832C38 #63832C #2C8378
square
#4C2C83 #832C38 #63832C #2C8378
split-complementary
#4C2C83 #83782C #38832C
monochromatic
#170D27 #311D55 #4C2C83 #673BB1 #8760CA

Accessibility & contrast

On white

10.52
#4C2C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4C2C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2C83
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2C83#FFFFFF#000000##FFFFFF
##4C2C831.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004086
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#3E4053
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2c83;
/* rgb */ color: rgb(76, 44, 131);
/* oklch */ color: oklch(38.3% 0.139 296.1);
Tailwind
colors: {
  custom: {
    50: '#8367a8',
    500: '#4c2c83',
    950: '#000000',
  },
}
SCSS
$custom: #4c2c83;
$custom-light: #8367a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2c83",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 131
  },
  "hsl": {
    "h": 262.069,
    "s": 49.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38296,
    "c": 0.13912,
    "h": 296.1
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#4C2C83
secondary
#91B05B
accent
#D94FA6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2C83

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

Preview Lab → · Contrast checker → · Palette generator →

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