#4C2F84#4C2F84

#4C2F84 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.136 H 295.0°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#4C2F84
RGBrgb(76, 47, 132)
HSLhsl(260, 47%, 35%)
HSVhsv(260, 64%, 52%)
CMYKcmyk(42.4%, 64.4%, 0%, 48.2%)
CIE-LABlab(27.39, 33.53, -43.26)
CIE-LCHlch(27.39, 54.73, 307.78°)
OKLaboklab(38.85% 0.0575 -0.1233)
OKLCHoklch(38.85% 0.136 295)
XYZxyz(8.1608, 5.2353, 22.4059)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F84 #67842F
analogous
#2F3C84 #4C2F84 #772F84
triadic
#4C2F84 #844C2F #2F844C
tetradic
#4C2F84 #842F3C #67842F #2F8477
square
#4C2F84 #842F3C #67842F #2F8477
split-complementary
#4C2F84 #84772F #3C842F
monochromatic
#180F2A #321F57 #4C2F84 #663FB1 #8765C8

Accessibility & contrast

On white

10.26
#4C2F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4C2F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F84
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F84#FFFFFF#000000##FFFFFF
##4C2F841.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004187
Deuteranopia (green-blind)
#003F82
Tritanopia (blue-blind)
#3D4255
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2f84;
/* rgb */ color: rgb(76, 47, 132);
/* oklch */ color: oklch(38.8% 0.136 295.0);
Tailwind
colors: {
  custom: {
    50: '#8369a8',
    500: '#4c2f84',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f84;
$custom-light: #8369a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f84",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 260.471,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38847,
    "c": 0.13608,
    "h": 295
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#4C2F84
secondary
#94AF60
accent
#D751A9
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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