#4C2487#4C2487

#4C2487 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.155 H 296.6°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4C2487
RGBrgb(76, 36, 135)
HSLhsl(264, 58%, 34%)
HSVhsv(264, 73%, 53%)
CMYKcmyk(43.7%, 73.3%, 0%, 47.1%)
CIE-LABlab(25.40, 40.50, -48.37)
CIE-LCHlch(25.40, 63.09, 309.94°)
OKLaboklab(37.49% 0.0694 -0.1383)
OKLCHoklch(37.49% 0.155 296.6)
XYZxyz(7.9834, 4.5474, 23.3741)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2487 #5F8724
analogous
#242D87 #4C2487 #7D2487
triadic
#4C2487 #874C24 #24874C
tetradic
#4C2487 #87242D #5F8724 #24877D
square
#4C2487 #87242D #5F8724 #24877D
split-complementary
#4C2487 #877D24 #2D8724
monochromatic
#160A26 #311757 #4C2487 #6731B7 #8754D1

Accessibility & contrast

On white

11.00
#4C2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4C2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2487
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2487#FFFFFF#000000##FFFFFF
##4C24871.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#3D3D53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c2487;
/* rgb */ color: rgb(76, 36, 135);
/* oklch */ color: oklch(37.5% 0.155 296.6);
Tailwind
colors: {
  custom: {
    50: '#8462ab',
    500: '#4c2487',
    950: '#000000',
  },
}
SCSS
$custom: #4c2487;
$custom-light: #8462ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2487",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 264.242,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37493,
    "c": 0.15473,
    "h": 296.6
  },
  "luminance": 0.04548
}

Semantic roles & 50–950 ramp

primary
#4C2487
secondary
#8DB551
accent
#E147A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4C2487

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

Preview Lab → · Contrast checker → · Palette generator →

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