#4F156B#4F156B

#4F156B is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.143 H 311.8°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#4F156B
RGBrgb(79, 21, 107)
HSLhsl(280, 67%, 25%)
HSVhsv(280, 80%, 42%)
CMYKcmyk(26.2%, 80.4%, 0%, 58%)
CIE-LABlab(21.06, 40.96, -37.56)
CIE-LCHlch(21.06, 55.57, 317.48°)
OKLaboklab(33.78% 0.095 -0.1063)
OKLCHoklch(33.78% 0.143 311.8)
XYZxyz(6.1460, 3.2603, 14.2126)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F156B #316B15
analogous
#24156B #4F156B #6B155C
triadic
#4F156B #6B4F15 #156B4F
tetradic
#4F156B #6B2415 #316B15 #155C6B
square
#4F156B #6B2415 #316B15 #155C6B
split-complementary
#4F156B #5C6B15 #156B24
monochromatic
#13051A #290B38 #4F156B #751F9E #9B29D1

Accessibility & contrast

On white

12.71
#4F156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4F156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F156B
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F156B#FFFFFF#000000##FFFFFF
##4F156B1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#053469
Tritanopia (blue-blind)
#4B293F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f156b;
/* rgb */ color: rgb(79, 21, 107);
/* oklch */ color: oklch(33.8% 0.143 311.8);
Tailwind
colors: {
  custom: {
    50: '#845a96',
    500: '#4f156b',
    950: '#000000',
  },
}
SCSS
$custom: #4f156b;
$custom-light: #845a96;
$custom-dark: #000000;
JSON
{
  "hex": "#4f156b",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 280.465,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33784,
    "c": 0.14259,
    "h": 311.8
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#4F156B
secondary
#5CA23A
accent
#EA3E76
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F156B

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

Preview Lab → · Contrast checker → · Palette generator →

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