#4B115F#4B115F

#4B115F is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.134 H 315.5°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#4B115F
RGBrgb(75, 17, 95)
HSLhsl(285, 70%, 22%)
HSVhsv(285, 82%, 37%)
CMYKcmyk(21.1%, 82.1%, 0%, 62.7%)
CIE-LABlab(18.90, 38.99, -33.20)
CIE-LCHlch(18.90, 51.20, 319.59°)
OKLaboklab(31.83% 0.0954 -0.0936)
OKLCHoklch(31.83% 0.134 315.5)
XYZxyz(5.1673, 2.7232, 11.0777)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B115F #255F11
analogous
#24115F #4B115F #5F114C
triadic
#4B115F #5F4B11 #115F4B
tetradic
#4B115F #5F2411 #255F11 #114C5F
square
#4B115F #5F2411 #255F11 #114C5F
split-complementary
#4B115F #4C5F11 #115F24
monochromatic
#14051A #22082B #4B115F #741A93 #9D24C7

Accessibility & contrast

On white

13.60
#4B115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4B115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B115F
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B115F#FFFFFF#000000##FFFFFF
##4B115F1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#0E2F5D
Tritanopia (blue-blind)
#492338
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4b115f;
/* rgb */ color: rgb(75, 17, 95);
/* oklch */ color: oklch(31.8% 0.134 315.5);
Tailwind
colors: {
  custom: {
    50: '#81578d',
    500: '#4b115f',
    950: '#000000',
  },
}
SCSS
$custom: #4b115f;
$custom-light: #81578d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b115f",
  "rgb": {
    "r": 75,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 284.615,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31828,
    "c": 0.13369,
    "h": 315.5
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#4B115F
secondary
#4E9834
accent
#EC3B69
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4B115F

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

Preview Lab → · Contrast checker → · Palette generator →

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