#4B155C#4B155C

#4B155C is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.126 H 316.8°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#4B155C
RGBrgb(75, 21, 92)
HSLhsl(286, 63%, 22%)
HSVhsv(286, 77%, 36%)
CMYKcmyk(18.5%, 77.2%, 0%, 63.9%)
CIE-LABlab(19.25, 36.68, -30.64)
CIE-LCHlch(19.25, 47.80, 320.13°)
OKLaboklab(32% 0.0917 -0.0862)
OKLCHoklch(32% 0.126 316.8)
XYZxyz(5.1013, 2.8051, 10.3959)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B155C #265C15
analogous
#28155C #4B155C #5C154A
triadic
#4B155C #5C4B15 #155C4B
tetradic
#4B155C #5C2815 #265C15 #154A5C
square
#4B155C #5C2815 #265C15 #154A5C
split-complementary
#4B155C #4A5C15 #155C28
monochromatic
#140619 #220A2A #4B155C #74208E #9C2CC0

Accessibility & contrast

On white

13.45
#4B155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4B155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B155C
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B155C#FFFFFF#000000##FFFFFF
##4B155C1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#16305A
Tritanopia (blue-blind)
#4A2437
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4b155c;
/* rgb */ color: rgb(75, 21, 92);
/* oklch */ color: oklch(32.0% 0.126 316.8);
Tailwind
colors: {
  custom: {
    50: '#80588b',
    500: '#4b155c',
    950: '#000000',
  },
}
SCSS
$custom: #4b155c;
$custom-light: #80588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b155c",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 285.634,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32002,
    "c": 0.12583,
    "h": 316.8
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#4B155C
secondary
#4F9339
accent
#E64269
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4B155C

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

Preview Lab → · Contrast checker → · Palette generator →

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