#4F157F#4F157F

#4F157F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.163 H 303.4°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#4F157F
RGBrgb(79, 21, 127)
HSLhsl(273, 72%, 29%)
HSVhsv(273, 83%, 50%)
CMYKcmyk(37.8%, 83.5%, 0%, 50.2%)
CIE-LABlab(22.76, 45.68, -47.63)
CIE-LCHlch(22.76, 65.99, 313.80°)
OKLaboklab(35.51% 0.0898 -0.1359)
OKLCHoklch(35.51% 0.163 303.4)
XYZxyz(7.3225, 3.7309, 20.4089)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F157F #457F15
analogous
#1A157F #4F157F #7F157A
triadic
#4F157F #7F4F15 #157F4F
tetradic
#4F157F #7F1A15 #457F15 #157A7F
square
#4F157F #7F1A15 #457F15 #157A7F
split-complementary
#4F157F #7A7F15 #157F1A
monochromatic
#10041A #2E0C4A #4F157F #701EB4 #8F31DD

Accessibility & contrast

On white

12.03
#4F157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4F157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F157F
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F157F#FFFFFF#000000##FFFFFF
##4F157F1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#45324B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f157f;
/* rgb */ color: rgb(79, 21, 127);
/* oklch */ color: oklch(35.5% 0.163 303.4);
Tailwind
colors: {
  custom: {
    50: '#865ba5',
    500: '#4f157f',
    950: '#000000',
  },
}
SCSS
$custom: #4f157f;
$custom-light: #865ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f157f",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 272.83,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35507,
    "c": 0.1629,
    "h": 303.4
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#4F157F
secondary
#72B43C
accent
#EE398B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F157F

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

Preview Lab → · Contrast checker → · Palette generator →

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