#4C2D8D#4C2D8D

#4C2D8D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.150 H 293.0°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4C2D8D
RGBrgb(76, 45, 141)
HSLhsl(259, 52%, 36%)
HSVhsv(259, 68%, 55%)
CMYKcmyk(46.1%, 68.1%, 0%, 44.7%)
CIE-LABlab(27.67, 37.31, -48.41)
CIE-LCHlch(27.67, 61.12, 307.63°)
OKLaboklab(39.27% 0.0588 -0.1385)
OKLCHoklch(39.27% 0.15 293)
XYZxyz(8.7253, 5.3361, 25.7644)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D8D #6E8D2D
analogous
#2D3E8D #4C2D8D #7C2D8D
triadic
#4C2D8D #8D4C2D #2D8D4C
tetradic
#4C2D8D #8D2D3E #6E8D2D #2D8D7C
square
#4C2D8D #8D2D3E #6E8D2D #2D8D7C
split-complementary
#4C2D8D #8D7C2D #3E8D2D
monochromatic
#1A0F30 #331E5F #4C2D8D #653CBB #8866CE

Accessibility & contrast

On white

10.16
#4C2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4C2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2D8D
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D8D#FFFFFF#000000##FFFFFF
##4C2D8D1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#394459
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2d8d;
/* rgb */ color: rgb(76, 45, 141);
/* oklch */ color: oklch(39.3% 0.150 293.0);
Tailwind
colors: {
  custom: {
    50: '#8468af',
    500: '#4c2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d8d;
$custom-light: #8468af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d8d",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 259.375,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39269,
    "c": 0.15045,
    "h": 293
  },
  "luminance": 0.05336
}

Semantic roles & 50–950 ramp

primary
#4C2D8D
secondary
#9AB561
accent
#DB4DAD
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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