#4C2589#4C2589

#4C2589 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.156 H 295.8°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4C2589
RGBrgb(76, 37, 137)
HSLhsl(263, 57%, 34%)
HSVhsv(263, 73%, 54%)
CMYKcmyk(44.5%, 73%, 0%, 46.3%)
CIE-LABlab(25.76, 40.54, -49.04)
CIE-LCHlch(25.76, 63.62, 309.58°)
OKLaboklab(37.8% 0.0679 -0.1403)
OKLCHoklch(37.8% 0.156 295.8)
XYZxyz(8.1562, 4.6656, 24.1329)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2589 #628925
analogous
#253089 #4C2589 #7E2589
triadic
#4C2589 #894C25 #25894C
tetradic
#4C2589 #892530 #628925 #25897E
square
#4C2589 #892530 #628925 #25897E
split-complementary
#4C2589 #897E25 #308925
monochromatic
#170B29 #311859 #4C2589 #6732B9 #8757D2

Accessibility & contrast

On white

10.86
#4C2589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4C2589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2589
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2589#FFFFFF#000000##FFFFFF
##4C25891.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#3C3E54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c2589;
/* rgb */ color: rgb(76, 37, 137);
/* oklch */ color: oklch(37.8% 0.156 295.8);
Tailwind
colors: {
  custom: {
    50: '#8463ac',
    500: '#4c2589',
    950: '#000000',
  },
}
SCSS
$custom: #4c2589;
$custom-light: #8463ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2589",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 137
  },
  "hsl": {
    "h": 263.4,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37799,
    "c": 0.15587,
    "h": 295.8
  },
  "luminance": 0.04666
}

Semantic roles & 50–950 ramp

primary
#4C2589
secondary
#90B654
accent
#E147A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4C2589

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

Preview Lab → · Contrast checker → · Palette generator →

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