#4C2B71#4C2B71

#4C2B71 is a dark, moderate violet. Relative luminance 0.045; OKLCH L 36.8% C 0.117 H 302.8°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#4C2B71
RGBrgb(76, 43, 113)
HSLhsl(268, 45%, 31%)
HSVhsv(268, 62%, 44%)
CMYKcmyk(32.7%, 61.9%, 0%, 55.7%)
CIE-LABlab(25.13, 30.55, -34.90)
CIE-LCHlch(25.13, 46.38, 311.20°)
OKLaboklab(36.76% 0.0636 -0.0987)
OKLCHoklch(36.76% 0.117 302.8)
XYZxyz(6.8243, 4.4565, 16.1202)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2B71 #50712B
analogous
#2B2D71 #4C2B71 #6F2B71
triadic
#4C2B71 #714C2B #2B714C
tetradic
#4C2B71 #712B2D #50712B #2B716F
square
#4C2B71 #712B2D #50712B #2B716F
split-complementary
#4C2B71 #716F2B #2D712B
monochromatic
#100918 #2E1A45 #4C2B71 #6A3C9D #8857BF

Accessibility & contrast

On white

11.10
#4C2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4C2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2B71
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2B71#FFFFFF#000000##FFFFFF
##4C2B711.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093B73
Deuteranopia (green-blind)
#193B6F
Tritanopia (blue-blind)
#453949
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c2b71;
/* rgb */ color: rgb(76, 43, 113);
/* oklch */ color: oklch(36.8% 0.117 302.8);
Tailwind
colors: {
  custom: {
    50: '#81669a',
    500: '#4c2b71',
    950: '#000000',
  },
}
SCSS
$custom: #4c2b71;
$custom-light: #81669a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2b71",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 268.286,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36756,
    "c": 0.11743,
    "h": 302.8
  },
  "luminance": 0.04457
}

Semantic roles & 50–950 ramp

primary
#4C2B71
secondary
#7EA355
accent
#D55398
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A060E
muted
#7C7A7E

Preview Lab

Preview with #4C2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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