#4A115B#4A115B

#4A115B is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.129 H 317.0°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#4A115B
RGBrgb(74, 17, 91)
HSLhsl(286, 69%, 21%)
HSVhsv(286, 81%, 36%)
CMYKcmyk(18.7%, 81.3%, 0%, 64.3%)
CIE-LABlab(18.42, 37.89, -31.31)
CIE-LCHlch(18.42, 49.16, 320.43°)
OKLaboklab(31.36% 0.0947 -0.0882)
OKLCHoklch(31.36% 0.129 317)
XYZxyz(4.9125, 2.6123, 10.1410)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A115B #225B11
analogous
#25115B #4A115B #5B1147
triadic
#4A115B #5B4A11 #115B4A
tetradic
#4A115B #5B2511 #225B11 #11475B
square
#4A115B #5B2511 #225B11 #11475B
split-complementary
#4A115B #475B11 #115B25
monochromatic
#15051A #200727 #4A115B #741B8F #9E24C2

Accessibility & contrast

On white

13.79
#4A115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A115B
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A115B#FFFFFF#000000##FFFFFF
##4A115B1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#122F59
Tritanopia (blue-blind)
#492135
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a115b;
/* rgb */ color: rgb(74, 17, 91);
/* oklch */ color: oklch(31.4% 0.129 317.0);
Tailwind
colors: {
  custom: {
    50: '#80568a',
    500: '#4a115b',
    950: '#000000',
  },
}
SCSS
$custom: #4a115b;
$custom-light: #80568a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a115b",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 286.216,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31357,
    "c": 0.12936,
    "h": 317
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#4A115B
secondary
#4A9434
accent
#EB3C65
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A115B

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

Preview Lab → · Contrast checker → · Palette generator →

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