#4B2587#4B2587

#4B2587 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.153 H 295.8°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#4B2587
RGBrgb(75, 37, 135)
HSLhsl(263, 57%, 34%)
HSVhsv(263, 73%, 53%)
CMYKcmyk(44.4%, 72.6%, 0%, 47.1%)
CIE-LABlab(25.47, 39.79, -48.27)
CIE-LCHlch(25.47, 62.56, 309.50°)
OKLaboklab(37.51% 0.0668 -0.1381)
OKLCHoklch(37.51% 0.153 295.8)
XYZxyz(7.9352, 4.5681, 23.3806)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2587 #618725
analogous
#253087 #4B2587 #7C2587
triadic
#4B2587 #874B25 #25874B
tetradic
#4B2587 #872530 #618725 #25877C
square
#4B2587 #872530 #618725 #25877C
split-complementary
#4B2587 #877C25 #308725
monochromatic
#160B27 #301857 #4B2587 #6632B7 #8556D1

Accessibility & contrast

On white

10.97
#4B2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B2587
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2587#FFFFFF#000000##FFFFFF
##4B25871.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b2587;
/* rgb */ color: rgb(75, 37, 135);
/* oklch */ color: oklch(37.5% 0.153 295.8);
Tailwind
colors: {
  custom: {
    50: '#8363ab',
    500: '#4b2587',
    950: '#000000',
  },
}
SCSS
$custom: #4b2587;
$custom-light: #8363ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2587",
  "rgb": {
    "r": 75,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 263.265,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3751,
    "c": 0.15339,
    "h": 295.8
  },
  "luminance": 0.04568
}

Semantic roles & 50–950 ramp

primary
#4B2587
secondary
#8FB553
accent
#E048A5
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4B2587

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

Preview Lab → · Contrast checker → · Palette generator →

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