#4F175E#4F175E

#4F175E is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.127 H 318.3°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#4F175E
RGBrgb(79, 23, 94)
HSLhsl(287, 61%, 23%)
HSVhsv(287, 76%, 37%)
CMYKcmyk(16%, 75.5%, 0%, 63.1%)
CIE-LABlab(20.38, 37.20, -30.12)
CIE-LCHlch(20.38, 47.87, 321.00°)
OKLaboklab(32.99% 0.0947 -0.0845)
OKLCHoklch(32.99% 0.127 318.3)
XYZxyz(5.5509, 3.0835, 10.8903)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F175E #265E17
analogous
#2B175E #4F175E #5E1749
triadic
#4F175E #5E4F17 #175E4F
tetradic
#4F175E #5E2B17 #265E17 #17495E
square
#4F175E #5E2B17 #265E17 #17495E
split-complementary
#4F175E #495E17 #175E2B
monochromatic
#150619 #260B2D #4F175E #78238F #A22FC0

Accessibility & contrast

On white

12.99
#4F175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4F175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F175E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F175E#FFFFFF#000000##FFFFFF
##4F175E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f175e;
/* rgb */ color: rgb(79, 23, 94);
/* oklch */ color: oklch(33.0% 0.127 318.3);
Tailwind
colors: {
  custom: {
    50: '#835a8c',
    500: '#4f175e',
    950: '#000000',
  },
}
SCSS
$custom: #4f175e;
$custom-light: #835a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f175e",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 287.324,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3299,
    "c": 0.12697,
    "h": 318.3
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#4F175E
secondary
#4F953C
accent
#E44466
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4F175E

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

Preview Lab → · Contrast checker → · Palette generator →

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