#4F166B#4F166B

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

Color values

HEX#4F166B
RGBrgb(79, 22, 107)
HSLhsl(280, 66%, 25%)
HSVhsv(280, 79%, 42%)
CMYKcmyk(26.2%, 79.4%, 0%, 58%)
CIE-LABlab(21.20, 40.55, -37.33)
CIE-LCHlch(21.20, 55.12, 317.37°)
OKLaboklab(33.88% 0.094 -0.1057)
OKLCHoklch(33.88% 0.141 311.7)
XYZxyz(6.1647, 3.2978, 14.2189)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F166B #326B16
analogous
#24166B #4F166B #6B165C
triadic
#4F166B #6B4F16 #166B4F
tetradic
#4F166B #6B2416 #326B16 #165C6B
square
#4F166B #6B2416 #326B16 #165C6B
split-complementary
#4F166B #5C6B16 #166B24
monochromatic
#130519 #2A0C38 #4F166B #74209E #9A2BD1

Accessibility & contrast

On white

12.65
#4F166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F166B
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F166B#FFFFFF#000000##FFFFFF
##4F166B1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f166b;
/* rgb */ color: rgb(79, 22, 107);
/* oklch */ color: oklch(33.9% 0.141 311.7);
Tailwind
colors: {
  custom: {
    50: '#845a96',
    500: '#4f166b',
    950: '#000000',
  },
}
SCSS
$custom: #4f166b;
$custom-light: #845a96;
$custom-dark: #000000;
JSON
{
  "hex": "#4f166b",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 280.235,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33884,
    "c": 0.14144,
    "h": 311.7
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#4F166B
secondary
#5DA13B
accent
#E93F77
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F166B

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

Preview Lab → · Contrast checker → · Palette generator →

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