#4C2F83#4C2F83

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

Color values

HEX#4C2F83
RGBrgb(76, 47, 131)
HSLhsl(261, 47%, 35%)
HSVhsv(261, 64%, 51%)
CMYKcmyk(42%, 64.1%, 0%, 48.6%)
CIE-LABlab(27.32, 33.24, -42.75)
CIE-LCHlch(27.32, 54.16, 307.87°)
OKLaboklab(38.77% 0.0576 -0.1218)
OKLCHoklch(38.77% 0.135 295.3)
XYZxyz(8.0927, 5.2080, 22.0472)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F83 #66832F
analogous
#2F3C83 #4C2F83 #762F83
triadic
#4C2F83 #834C2F #2F834C
tetradic
#4C2F83 #832F3C #66832F #2F8376
square
#4C2F83 #832F3C #66832F #2F8376
split-complementary
#4C2F83 #83762F #3C832F
monochromatic
#180F29 #321F56 #4C2F83 #663FB0 #8765C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C2F83#FFFFFF#000000##FFFFFF
##4C2F831.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)
#004186
Deuteranopia (green-blind)
#003F81
Tritanopia (blue-blind)
#3E4254
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2f83;
/* rgb */ color: rgb(76, 47, 131);
/* oklch */ color: oklch(38.8% 0.135 295.3);
Tailwind
colors: {
  custom: {
    50: '#8269a8',
    500: '#4c2f83',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f83;
$custom-light: #8269a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f83",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 260.714,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38768,
    "c": 0.13477,
    "h": 295.3
  },
  "luminance": 0.05208
}

Semantic roles & 50–950 ramp

primary
#4C2F83
secondary
#93AF5F
accent
#D751A9
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2F83

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

Preview Lab → · Contrast checker → · Palette generator →

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