#4F156C#4F156C

#4F156C is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.144 H 311.3°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#4F156C
RGBrgb(79, 21, 108)
HSLhsl(280, 67%, 25%)
HSVhsv(280, 81%, 42%)
CMYKcmyk(26.9%, 80.6%, 0%, 57.6%)
CIE-LABlab(21.14, 41.19, -38.08)
CIE-LCHlch(21.14, 56.09, 317.24°)
OKLaboklab(33.87% 0.0948 -0.1079)
OKLCHoklch(33.87% 0.144 311.3)
XYZxyz(6.1989, 3.2815, 14.4913)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F156C #326C15
analogous
#23156C #4F156C #6C155D
triadic
#4F156C #6C4F15 #156C4F
tetradic
#4F156C #6C2315 #326C15 #155D6C
square
#4F156C #6C2315 #326C15 #155D6C
split-complementary
#4F156C #5D6C15 #156C23
monochromatic
#13051A #2A0B39 #4F156C #741F9F #9A29D2

Accessibility & contrast

On white

12.68
#4F156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4F156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F156C
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F156C#FFFFFF#000000##FFFFFF
##4F156C1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#03346A
Tritanopia (blue-blind)
#4B2A40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f156c;
/* rgb */ color: rgb(79, 21, 108);
/* oklch */ color: oklch(33.9% 0.144 311.3);
Tailwind
colors: {
  custom: {
    50: '#845a97',
    500: '#4f156c',
    950: '#000000',
  },
}
SCSS
$custom: #4f156c;
$custom-light: #845a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4f156c",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 280,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33866,
    "c": 0.1436,
    "h": 311.3
  },
  "luminance": 0.03281
}

Semantic roles & 50–950 ramp

primary
#4F156C
secondary
#5DA33A
accent
#EA3D77
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F156C

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

Preview Lab → · Contrast checker → · Palette generator →

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