#4C2F87#4C2F87

#4C2F87 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.140 H 294.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#4C2F87
RGBrgb(76, 47, 135)
HSLhsl(260, 48%, 36%)
HSVhsv(260, 65%, 53%)
CMYKcmyk(43.7%, 65.2%, 0%, 47.1%)
CIE-LABlab(27.62, 34.41, -44.76)
CIE-LCHlch(27.62, 56.46, 307.55°)
OKLaboklab(39.09% 0.0573 -0.1277)
OKLCHoklch(39.09% 0.14 294.1)
XYZxyz(8.3690, 5.3186, 23.5026)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F87 #6A872F
analogous
#2F3E87 #4C2F87 #782F87
triadic
#4C2F87 #874C2F #2F874C
tetradic
#4C2F87 #872F3E #6A872F #2F8778
square
#4C2F87 #872F3E #6A872F #2F8778
split-complementary
#4C2F87 #87782F #3E872F
monochromatic
#190F2C #321F5A #4C2F87 #663FB4 #8766CA

Accessibility & contrast

On white

10.18
#4C2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4C2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F87
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F87#FFFFFF#000000##FFFFFF
##4C2F871.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#3C4356
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2f87;
/* rgb */ color: rgb(76, 47, 135);
/* oklch */ color: oklch(39.1% 0.140 294.1);
Tailwind
colors: {
  custom: {
    50: '#8369ab',
    500: '#4c2f87',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f87;
$custom-light: #8369ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f87",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 259.773,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39086,
    "c": 0.13998,
    "h": 294.1
  },
  "luminance": 0.05319
}

Semantic roles & 50–950 ramp

primary
#4C2F87
secondary
#97B161
accent
#D850AB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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