#4C2E87#4C2E87

#4C2E87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.141 H 294.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4C2E87
RGBrgb(76, 46, 135)
HSLhsl(260, 49%, 35%)
HSVhsv(260, 66%, 53%)
CMYKcmyk(43.7%, 65.9%, 0%, 47.1%)
CIE-LABlab(27.41, 34.99, -45.11)
CIE-LCHlch(27.41, 57.09, 307.80°)
OKLaboklab(38.93% 0.0584 -0.1288)
OKLCHoklch(38.93% 0.141 294.4)
XYZxyz(8.3295, 5.2395, 23.4894)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E87 #69872E
analogous
#2E3C87 #4C2E87 #782E87
triadic
#4C2E87 #874C2E #2E874C
tetradic
#4C2E87 #872E3C #69872E #2E8778
square
#4C2E87 #872E3C #69872E #2E8778
split-complementary
#4C2E87 #87782E #3C872E
monochromatic
#190F2C #321E59 #4C2E87 #663EB5 #8765CA

Accessibility & contrast

On white

10.25
#4C2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2E87
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E87#FFFFFF#000000##FFFFFF
##4C2E871.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2e87;
/* rgb */ color: rgb(76, 46, 135);
/* oklch */ color: oklch(38.9% 0.141 294.4);
Tailwind
colors: {
  custom: {
    50: '#8368ab',
    500: '#4c2e87',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e87;
$custom-light: #8368ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e87",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 260.225,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38928,
    "c": 0.14141,
    "h": 294.4
  },
  "luminance": 0.0524
}

Semantic roles & 50–950 ramp

primary
#4C2E87
secondary
#96B160
accent
#D94FAA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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