#4C2F9F#4C2F9F

#4C2F9F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.170 H 288.4°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4C2F9F
RGBrgb(76, 47, 159)
HSLhsl(256, 54%, 40%)
HSVhsv(256, 70%, 62%)
CMYKcmyk(52.2%, 70.4%, 0%, 37.6%)
CIE-LABlab(29.59, 41.49, -56.31)
CIE-LCHlch(29.59, 69.94, 306.39°)
OKLaboklab(41.12% 0.0539 -0.1617)
OKLCHoklch(41.12% 0.17 288.4)
XYZxyz(10.2532, 6.0723, 33.4260)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F9F #829F2F
analogous
#2F4A9F #4C2F9F #842F9F
triadic
#4C2F9F #9F4C2F #2F9F4C
tetradic
#4C2F9F #9F2F4A #829F2F #2F9F84
square
#4C2F9F #9F2F4A #829F2F #2F9F84
split-complementary
#4C2F9F #9F842F #4A9F2F
monochromatic
#1F1341 #352170 #4C2F9F #6644C8 #8C73D6

Accessibility & contrast

On white

9.48
#4C2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4C2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F9F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F9F#FFFFFF#000000##FFFFFF
##4C2F9F1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#2D4C63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2f9f;
/* rgb */ color: rgb(76, 47, 159);
/* oklch */ color: oklch(41.1% 0.170 288.4);
Tailwind
colors: {
  custom: {
    50: '#866abc',
    500: '#4c2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f9f;
$custom-light: #866abc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f9f",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 255.536,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41118,
    "c": 0.17042,
    "h": 288.4
  },
  "luminance": 0.06073
}

Semantic roles & 50–950 ramp

primary
#4C2F9F
secondary
#A8BD6D
accent
#DE4AB7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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