#4B1158#4B1158

#4B1158 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.3% C 0.127 H 319.5°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#4B1158
RGBrgb(75, 17, 88)
HSLhsl(289, 68%, 21%)
HSVhsv(289, 81%, 35%)
CMYKcmyk(14.8%, 80.7%, 0%, 65.5%)
CIE-LABlab(18.37, 37.47, -29.37)
CIE-LCHlch(18.37, 47.61, 321.91°)
OKLaboklab(31.29% 0.0964 -0.0824)
OKLCHoklch(31.29% 0.127 319.5)
XYZxyz(4.8633, 2.6016, 9.4766)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1158 #1E5811
analogous
#271158 #4B1158 #581141
triadic
#4B1158 #584B11 #11584B
tetradic
#4B1158 #582711 #1E5811 #114158
square
#4B1158 #582711 #1E5811 #114158
split-complementary
#4B1158 #415811 #115827
monochromatic
#16051A #1F0725 #4B1158 #771B8B #A225BF

Accessibility & contrast

On white

13.81
#4B1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4B1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1158
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1158#FFFFFF#000000##FFFFFF
##4B11581.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#172F56
Tritanopia (blue-blind)
#4B2034
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4b1158;
/* rgb */ color: rgb(75, 17, 88);
/* oklch */ color: oklch(31.3% 0.127 319.5);
Tailwind
colors: {
  custom: {
    50: '#805687',
    500: '#4b1158',
    950: '#000000',
  },
}
SCSS
$custom: #4b1158;
$custom-light: #805687;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1158",
  "rgb": {
    "r": 75,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 289.014,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31287,
    "c": 0.12687,
    "h": 319.5
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#4B1158
secondary
#459134
accent
#EA3D5D
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4B1158

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

Preview Lab → · Contrast checker → · Palette generator →

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