#4F155B#4F155B

#4F155B is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.127 H 320.2°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#4F155B
RGBrgb(79, 21, 91)
HSLhsl(290, 63%, 22%)
HSVhsv(290, 77%, 36%)
CMYKcmyk(13.2%, 76.9%, 0%, 64.3%)
CIE-LABlab(19.86, 37.42, -28.95)
CIE-LCHlch(19.86, 47.31, 322.27°)
OKLaboklab(32.55% 0.0973 -0.0811)
OKLCHoklch(32.55% 0.127 320.2)
XYZxyz(5.3807, 2.9542, 10.1823)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F155B #215B15
analogous
#2C155B #4F155B #5B1544
triadic
#4F155B #5B4F15 #155B4F
tetradic
#4F155B #5B2C15 #215B15 #15445B
square
#4F155B #5B2C15 #215B15 #15445B
split-complementary
#4F155B #445B15 #155B2C
monochromatic
#160619 #240A29 #4F155B #7A208D #A52CBE

Accessibility & contrast

On white

13.20
#4F155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4F155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F155B
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F155B#FFFFFF#000000##FFFFFF
##4F155B1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#1C3259
Tritanopia (blue-blind)
#4F2236
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4f155b;
/* rgb */ color: rgb(79, 21, 91);
/* oklch */ color: oklch(32.6% 0.127 320.2);
Tailwind
colors: {
  custom: {
    50: '#83598a',
    500: '#4f155b',
    950: '#000000',
  },
}
SCSS
$custom: #4f155b;
$custom-light: #83598a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f155b",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 289.714,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32554,
    "c": 0.12663,
    "h": 320.2
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#4F155B
secondary
#499239
accent
#E6425E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4F155B

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

Preview Lab → · Contrast checker → · Palette generator →

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