#4C2E88#4C2E88

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

Color values

HEX#4C2E88
RGBrgb(76, 46, 136)
HSLhsl(260, 49%, 36%)
HSVhsv(260, 66%, 53%)
CMYKcmyk(44.1%, 66.2%, 0%, 46.7%)
CIE-LABlab(27.48, 35.28, -45.61)
CIE-LCHlch(27.48, 57.66, 307.73°)
OKLaboklab(39.01% 0.0583 -0.1302)
OKLCHoklch(39.01% 0.143 294.1)
XYZxyz(8.4002, 5.2678, 23.8620)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E88 #6A882E
analogous
#2E3D88 #4C2E88 #792E88
triadic
#4C2E88 #884C2E #2E884C
tetradic
#4C2E88 #882E3D #6A882E #2E8879
square
#4C2E88 #882E3D #6A882E #2E8879
split-complementary
#4C2E88 #88792E #3D882E
monochromatic
#190F2D #321F5A #4C2E88 #663DB6 #8765CB

Accessibility & contrast

On white

10.23
#4C2E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2E88
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E88#FFFFFF#000000##FFFFFF
##4C2E881.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2e88;
/* rgb */ color: rgb(76, 46, 136);
/* oklch */ color: oklch(39.0% 0.143 294.1);
Tailwind
colors: {
  custom: {
    50: '#8368ab',
    500: '#4c2e88',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e88;
$custom-light: #8368ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e88",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 260,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39009,
    "c": 0.1427,
    "h": 294.1
  },
  "luminance": 0.05268
}

Semantic roles & 50–950 ramp

primary
#4C2E88
secondary
#97B260
accent
#D94FAB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2E88

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

Preview Lab → · Contrast checker → · Palette generator →

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