#4F156A#4F156A

#4F156A is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.142 H 312.2°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#4F156A
RGBrgb(79, 21, 106)
HSLhsl(281, 67%, 25%)
HSVhsv(281, 80%, 42%)
CMYKcmyk(25.5%, 80.2%, 0%, 58.4%)
CIE-LABlab(20.98, 40.73, -37.04)
CIE-LCHlch(20.98, 55.05, 317.72°)
OKLaboklab(33.7% 0.0952 -0.1048)
OKLCHoklch(33.7% 0.142 312.2)
XYZxyz(6.0937, 3.2394, 13.9371)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F156A #306A15
analogous
#24156A #4F156A #6A155B
triadic
#4F156A #6A4F15 #156A4F
tetradic
#4F156A #6A2415 #306A15 #155B6A
square
#4F156A #6A2415 #306A15 #155B6A
split-complementary
#4F156A #5B6A15 #156A24
monochromatic
#13051A #290B37 #4F156A #751F9D #9B29D0

Accessibility & contrast

On white

12.74
#4F156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F156A
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F156A#FFFFFF#000000##FFFFFF
##4F156A1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#083468
Tritanopia (blue-blind)
#4C293F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4f156a;
/* rgb */ color: rgb(79, 21, 106);
/* oklch */ color: oklch(33.7% 0.142 312.2);
Tailwind
colors: {
  custom: {
    50: '#845a95',
    500: '#4f156a',
    950: '#000000',
  },
}
SCSS
$custom: #4f156a;
$custom-light: #845a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4f156a",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 280.941,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33703,
    "c": 0.14158,
    "h": 312.2
  },
  "luminance": 0.03239
}

Semantic roles & 50–950 ramp

primary
#4F156A
secondary
#5BA13A
accent
#EA3E75
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F156A

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

Preview Lab → · Contrast checker → · Palette generator →

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