#4F165E#4F165E

#4F165E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.128 H 318.4°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#4F165E
RGBrgb(79, 22, 94)
HSLhsl(288, 62%, 23%)
HSVhsv(288, 77%, 37%)
CMYKcmyk(16%, 76.6%, 0%, 63.1%)
CIE-LABlab(20.22, 37.64, -30.37)
CIE-LCHlch(20.22, 48.36, 321.10°)
OKLaboklab(32.88% 0.0959 -0.0852)
OKLCHoklch(32.88% 0.128 318.4)
XYZxyz(5.5315, 3.0445, 10.8838)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F165E #255E16
analogous
#2B165E #4F165E #5E1649
triadic
#4F165E #5E4F16 #165E4F
tetradic
#4F165E #5E2B16 #255E16 #16495E
square
#4F165E #5E2B16 #255E16 #16495E
split-complementary
#4F165E #495E16 #165E2B
monochromatic
#150619 #250A2C #4F165E #792290 #A22DC1

Accessibility & contrast

On white

13.05
#4F165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4F165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F165E
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F165E#FFFFFF#000000##FFFFFF
##4F165E1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#1A335C
Tritanopia (blue-blind)
#4F2438
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4f165e;
/* rgb */ color: rgb(79, 22, 94);
/* oklch */ color: oklch(32.9% 0.128 318.4);
Tailwind
colors: {
  custom: {
    50: '#83598c',
    500: '#4f165e',
    950: '#000000',
  },
}
SCSS
$custom: #4f165e;
$custom-light: #83598c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f165e",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 287.5,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.3288,
    "c": 0.12829,
    "h": 318.4
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#4F165E
secondary
#4E953B
accent
#E54365
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4F165E

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

Preview Lab → · Contrast checker → · Palette generator →

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