#4B2A87#4B2A87

#4B2A87 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.147 H 294.8°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#4B2A87
RGBrgb(75, 42, 135)
HSLhsl(261, 53%, 35%)
HSVhsv(261, 69%, 53%)
CMYKcmyk(44.4%, 68.9%, 0%, 47.1%)
CIE-LABlab(26.45, 37.07, -46.67)
CIE-LCHlch(26.45, 59.60, 308.46°)
OKLaboklab(38.21% 0.0615 -0.1334)
OKLCHoklch(38.21% 0.147 294.8)
XYZxyz(8.1016, 4.9009, 23.4361)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2A87 #66872A
analogous
#2A3887 #4B2A87 #792A87
triadic
#4B2A87 #874B2A #2A874B
tetradic
#4B2A87 #872A38 #66872A #2A8779
square
#4B2A87 #872A38 #66872A #2A8779
split-complementary
#4B2A87 #87792A #38872A
monochromatic
#170D2A #311B58 #4B2A87 #6539B6 #865ECD

Accessibility & contrast

On white

10.60
#4B2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4B2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2A87
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2A87#FFFFFF#000000##FFFFFF
##4B2A871.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#3B4055
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4b2a87;
/* rgb */ color: rgb(75, 42, 135);
/* oklch */ color: oklch(38.2% 0.147 294.8);
Tailwind
colors: {
  custom: {
    50: '#8366ab',
    500: '#4b2a87',
    950: '#000000',
  },
}
SCSS
$custom: #4b2a87;
$custom-light: #8366ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2a87",
  "rgb": {
    "r": 75,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 261.29,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38213,
    "c": 0.14687,
    "h": 294.8
  },
  "luminance": 0.04901
}

Semantic roles & 50–950 ramp

primary
#4B2A87
secondary
#93B35A
accent
#DC4CA9
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4B2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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