#4B155E#4B155E

#4B155E is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.128 H 315.7°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#4B155E
RGBrgb(75, 21, 94)
HSLhsl(284, 63%, 23%)
HSVhsv(284, 78%, 37%)
CMYKcmyk(20.2%, 77.7%, 0%, 63.1%)
CIE-LABlab(19.39, 37.13, -31.73)
CIE-LCHlch(19.39, 48.85, 319.48°)
OKLaboklab(32.15% 0.0914 -0.0894)
OKLCHoklch(32.15% 0.128 315.7)
XYZxyz(5.1899, 2.8405, 10.8624)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B155E #285E15
analogous
#27155E #4B155E #5E154C
triadic
#4B155E #5E4B15 #155E4B
tetradic
#4B155E #5E2715 #285E15 #154C5E
square
#4B155E #5E2715 #285E15 #154C5E
split-complementary
#4B155E #4C5E15 #155E27
monochromatic
#140619 #230A2C #4B155E #732090 #9B2BC2

Accessibility & contrast

On white

13.39
#4B155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B155E
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B155E#FFFFFF#000000##FFFFFF
##4B155E1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#14305C
Tritanopia (blue-blind)
#4A2438
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4b155e;
/* rgb */ color: rgb(75, 21, 94);
/* oklch */ color: oklch(32.2% 0.128 315.7);
Tailwind
colors: {
  custom: {
    50: '#80588c',
    500: '#4b155e',
    950: '#000000',
  },
}
SCSS
$custom: #4b155e;
$custom-light: #80588c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b155e",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 284.384,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32154,
    "c": 0.12787,
    "h": 315.7
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#4B155E
secondary
#519539
accent
#E7416C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4B155E

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

Preview Lab → · Contrast checker → · Palette generator →

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