#4B115B#4B115B

#4B115B is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.5% C 0.130 H 317.7°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#4B115B
RGBrgb(75, 17, 91)
HSLhsl(287, 69%, 21%)
HSVhsv(287, 81%, 36%)
CMYKcmyk(17.6%, 81.3%, 0%, 64.3%)
CIE-LABlab(18.59, 38.11, -31.02)
CIE-LCHlch(18.59, 49.14, 320.86°)
OKLaboklab(31.52% 0.0961 -0.0873)
OKLCHoklch(31.52% 0.13 317.7)
XYZxyz(4.9902, 2.6523, 10.1446)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B115B #215B11
analogous
#26115B #4B115B #5B1146
triadic
#4B115B #5B4B11 #115B4B
tetradic
#4B115B #5B2611 #215B11 #11465B
square
#4B115B #5B2611 #215B11 #11465B
split-complementary
#4B115B #465B11 #115B26
monochromatic
#15051A #200727 #4B115B #751B8F #A024C2

Accessibility & contrast

On white

13.72
#4B115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4B115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B115B
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B115B#FFFFFF#000000##FFFFFF
##4B115B1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#142F59
Tritanopia (blue-blind)
#4A2135
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4b115b;
/* rgb */ color: rgb(75, 17, 91);
/* oklch */ color: oklch(31.5% 0.130 317.7);
Tailwind
colors: {
  custom: {
    50: '#80568a',
    500: '#4b115b',
    950: '#000000',
  },
}
SCSS
$custom: #4b115b;
$custom-light: #80568a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b115b",
  "rgb": {
    "r": 75,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 287.027,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31516,
    "c": 0.12978,
    "h": 317.7
  },
  "luminance": 0.02652
}

Semantic roles & 50–950 ramp

primary
#4B115B
secondary
#499434
accent
#EB3C62
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4B115B

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

Preview Lab → · Contrast checker → · Palette generator →

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