#4B0840#4B0840

#4B0840 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.9% C 0.116 H 336.2°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#4B0840
RGBrgb(75, 8, 64)
HSLhsl(310, 81%, 16%)
HSVhsv(310, 89%, 29%)
CMYKcmyk(0%, 89.3%, 14.7%, 70.6%)
CIE-LABlab(15.70, 36.04, -17.15)
CIE-LCHlch(15.70, 39.91, 334.56°)
OKLaboklab(28.87% 0.1059 -0.0468)
OKLCHoklch(28.87% 0.116 336.2)
XYZxyz(3.9140, 2.0401, 5.0371)
Luminance0.0204 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B0840 #084B13
analogous
#35084B #4B0840 #4B081F
triadic
#4B0840 #404B08 #08404B
tetradic
#4B0840 #4B3508 #084B13 #081F4B
square
#4B0840 #4B3508 #084B13 #081F4B
split-complementary
#4B0840 #1F4B08 #084B35
monochromatic
#1C0318 #1C0318 #4B0840 #820E6F #BA149E

Accessibility & contrast

On white

14.91
#4B0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#4B0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B0840
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B0840#FFFFFF#000000##FFFFFF
##4B08401.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092141
Deuteranopia (green-blind)
#222B3F
Tritanopia (blue-blind)
#4F0E24
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #4b0840;
/* rgb */ color: rgb(75, 8, 64);
/* oklch */ color: oklch(28.9% 0.116 336.2);
Tailwind
colors: {
  custom: {
    50: '#805275',
    500: '#4b0840',
    950: '#000000',
  },
}
SCSS
$custom: #4b0840;
$custom-light: #805275;
$custom-dark: #000000;
JSON
{
  "hex": "#4b0840",
  "rgb": {
    "r": 75,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 309.851,
    "s": 80.723,
    "l": 16.275
  },
  "oklch": {
    "l": 0.28869,
    "c": 0.11583,
    "h": 336.2
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

primary
#4B0840
secondary
#268936
accent
#F75131
background
#F8F4F7
surface
#EFE7ED
border
#CAC3C8
text
#0B0208
muted
#7C787B

Preview Lab

Preview with #4B0840

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

Preview Lab → · Contrast checker → · Palette generator →

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