#4B1858#4B1858

#4B1858 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.1% C 0.118 H 318.8°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#4B1858
RGBrgb(75, 24, 88)
HSLhsl(288, 57%, 22%)
HSVhsv(288, 73%, 35%)
CMYKcmyk(14.8%, 72.7%, 0%, 65.5%)
CIE-LABlab(19.45, 34.42, -27.64)
CIE-LCHlch(19.45, 44.15, 321.23°)
OKLaboklab(32.06% 0.0884 -0.0774)
OKLCHoklch(32.06% 0.118 318.8)
XYZxyz(4.9895, 2.8539, 9.5187)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1858 #255818
analogous
#2B1858 #4B1858 #581845
triadic
#4B1858 #584B18 #18584B
tetradic
#4B1858 #582B18 #255818 #184558
square
#4B1858 #582B18 #255818 #184558
split-complementary
#4B1858 #455818 #18582B
monochromatic
#140718 #220B28 #4B1858 #742588 #9D32B8

Accessibility & contrast

On white

13.37
#4B1858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4B1858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1858
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1858#FFFFFF#000000##FFFFFF
##4B18581.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012C5A
Deuteranopia (green-blind)
#1C3156
Tritanopia (blue-blind)
#4B2436
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4b1858;
/* rgb */ color: rgb(75, 24, 88);
/* oklch */ color: oklch(32.1% 0.118 318.8);
Tailwind
colors: {
  custom: {
    50: '#805a87',
    500: '#4b1858',
    950: '#000000',
  },
}
SCSS
$custom: #4b1858;
$custom-light: #805a87;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1858",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 287.813,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32057,
    "c": 0.11752,
    "h": 318.8
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#4B1858
secondary
#4E8F3D
accent
#E04766
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #4B1858

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

Preview Lab → · Contrast checker → · Palette generator →

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