#4C2C8B#4C2C8B

#4C2C8B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.149 H 293.8°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4C2C8B
RGBrgb(76, 44, 139)
HSLhsl(260, 52%, 36%)
HSVhsv(260, 68%, 55%)
CMYKcmyk(45.3%, 68.3%, 0%, 45.5%)
CIE-LABlab(27.30, 37.30, -47.77)
CIE-LCHlch(27.30, 60.61, 307.98°)
OKLaboklab(38.95% 0.0602 -0.1366)
OKLCHoklch(38.95% 0.149 293.8)
XYZxyz(8.5401, 5.2017, 24.9752)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2C8B #6B8B2C
analogous
#2C3B8B #4C2C8B #7B2C8B
triadic
#4C2C8B #8B4C2C #2C8B4C
tetradic
#4C2C8B #8B2C3B #6B8B2C #2C8B7B
square
#4C2C8B #8B2C3B #6B8B2C #2C8B7B
split-complementary
#4C2C8B #8B7B2C #3B8B2C
monochromatic
#190F2E #331D5D #4C2C8B #653BB9 #8764CE

Accessibility & contrast

On white

10.29
#4C2C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4C2C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2C8B
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2C8B#FFFFFF#000000##FFFFFF
##4C2C8B1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#3A4357
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2c8b;
/* rgb */ color: rgb(76, 44, 139);
/* oklch */ color: oklch(39.0% 0.149 293.8);
Tailwind
colors: {
  custom: {
    50: '#8467ae',
    500: '#4c2c8b',
    950: '#000000',
  },
}
SCSS
$custom: #4c2c8b;
$custom-light: #8467ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2c8b",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 260.211,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38953,
    "c": 0.14927,
    "h": 293.8
  },
  "luminance": 0.05202
}

Semantic roles & 50–950 ramp

primary
#4C2C8B
secondary
#97B45F
accent
#DB4CAB
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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