#4F166A#4F166A

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

Color values

HEX#4F166A
RGBrgb(79, 22, 106)
HSLhsl(281, 66%, 25%)
HSVhsv(281, 79%, 42%)
CMYKcmyk(25.5%, 79.2%, 0%, 58.4%)
CIE-LABlab(21.12, 40.32, -36.81)
CIE-LCHlch(21.12, 54.59, 317.61°)
OKLaboklab(33.8% 0.0942 -0.1041)
OKLCHoklch(33.8% 0.14 312.1)
XYZxyz(6.1124, 3.2769, 13.9434)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F166A #316A16
analogous
#25166A #4F166A #6A165B
triadic
#4F166A #6A4F16 #166A4F
tetradic
#4F166A #6A2516 #316A16 #165B6A
square
#4F166A #6A2516 #316A16 #165B6A
split-complementary
#4F166A #5B6A16 #166A25
monochromatic
#130519 #290B37 #4F166A #75219D #9B2BCF

Accessibility & contrast

On white

12.69
#4F166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F166A
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F166A#FFFFFF#000000##FFFFFF
##4F166A1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f166a;
/* rgb */ color: rgb(79, 22, 106);
/* oklch */ color: oklch(33.8% 0.140 312.1);
Tailwind
colors: {
  custom: {
    50: '#845a95',
    500: '#4f166a',
    950: '#000000',
  },
}
SCSS
$custom: #4f166a;
$custom-light: #845a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4f166a",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 280.714,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33804,
    "c": 0.14042,
    "h": 312.1
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#4F166A
secondary
#5CA03B
accent
#E93F76
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F166A

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

Preview Lab → · Contrast checker → · Palette generator →

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