#4B2787#4B2787

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

Color values

HEX#4B2787
RGBrgb(75, 39, 135)
HSLhsl(263, 55%, 34%)
HSVhsv(263, 71%, 53%)
CMYKcmyk(44.4%, 71.1%, 0%, 47.1%)
CIE-LABlab(25.85, 38.73, -47.64)
CIE-LCHlch(25.85, 61.40, 309.10°)
OKLaboklab(37.78% 0.0647 -0.1362)
OKLCHoklch(37.78% 0.151 295.4)
XYZxyz(7.9992, 4.6960, 23.4019)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2787 #638727
analogous
#273387 #4B2787 #7B2787
triadic
#4B2787 #874B27 #27874B
tetradic
#4B2787 #872733 #638727 #27877B
square
#4B2787 #872733 #638727 #27877B
split-complementary
#4B2787 #877B27 #338727
monochromatic
#160C28 #311958 #4B2787 #6535B6 #8559CF

Accessibility & contrast

On white

10.83
#4B2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4B2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2787
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2787#FFFFFF#000000##FFFFFF
##4B27871.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#3B3F54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b2787;
/* rgb */ color: rgb(75, 39, 135);
/* oklch */ color: oklch(37.8% 0.151 295.4);
Tailwind
colors: {
  custom: {
    50: '#8364ab',
    500: '#4b2787',
    950: '#000000',
  },
}
SCSS
$custom: #4b2787;
$custom-light: #8364ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2787",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 262.5,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37783,
    "c": 0.15084,
    "h": 295.4
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

primary
#4B2787
secondary
#91B456
accent
#DF49A7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4B2787

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

Preview Lab → · Contrast checker → · Palette generator →

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