#4F165B#4F165B

#4F165B is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.125 H 320.1°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#4F165B
RGBrgb(79, 22, 91)
HSLhsl(290, 61%, 22%)
HSVhsv(290, 76%, 36%)
CMYKcmyk(13.2%, 75.8%, 0%, 64.3%)
CIE-LABlab(20.01, 36.99, -28.71)
CIE-LCHlch(20.01, 46.83, 322.18°)
OKLaboklab(32.66% 0.0961 -0.0804)
OKLCHoklch(32.66% 0.125 320.1)
XYZxyz(5.3995, 2.9917, 10.1885)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F165B #225B16
analogous
#2D165B #4F165B #5B1645
triadic
#4F165B #5B4F16 #165B4F
tetradic
#4F165B #5B2D16 #225B16 #16455B
square
#4F165B #5B2D16 #225B16 #16455B
split-complementary
#4F165B #455B16 #165B2D
monochromatic
#150619 #240A2A #4F165B #7A228C #A52EBE

Accessibility & contrast

On white

13.14
#4F165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4F165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F165B
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F165B#FFFFFF#000000##FFFFFF
##4F165B1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#1C3259
Tritanopia (blue-blind)
#4F2337
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4f165b;
/* rgb */ color: rgb(79, 22, 91);
/* oklch */ color: oklch(32.7% 0.125 320.1);
Tailwind
colors: {
  custom: {
    50: '#83598a',
    500: '#4f165b',
    950: '#000000',
  },
}
SCSS
$custom: #4f165b;
$custom-light: #83598a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f165b",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 289.565,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32662,
    "c": 0.12531,
    "h": 320.1
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#4F165B
secondary
#4A923B
accent
#E44460
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4F165B

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

Preview Lab → · Contrast checker → · Palette generator →

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