#4F157E#4F157E

#4F157E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.162 H 303.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#4F157E
RGBrgb(79, 21, 126)
HSLhsl(273, 71%, 29%)
HSVhsv(273, 83%, 49%)
CMYKcmyk(37.3%, 83.3%, 0%, 50.6%)
CIE-LABlab(22.67, 45.44, -47.14)
CIE-LCHlch(22.67, 65.47, 313.94°)
OKLaboklab(35.42% 0.0901 -0.1345)
OKLCHoklch(35.42% 0.162 303.8)
XYZxyz(7.2576, 3.7050, 20.0674)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F157E #447E15
analogous
#1B157E #4F157E #7E1579
triadic
#4F157E #7E4F15 #157E4F
tetradic
#4F157E #7E1B15 #447E15 #15797E
square
#4F157E #7E1B15 #447E15 #15797E
split-complementary
#4F157E #797E15 #157E1B
monochromatic
#10041A #2E0C4A #4F157E #701EB2 #9031DD

Accessibility & contrast

On white

12.06
#4F157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4F157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F157E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F157E#FFFFFF#000000##FFFFFF
##4F157E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#45324A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f157e;
/* rgb */ color: rgb(79, 21, 126);
/* oklch */ color: oklch(35.4% 0.162 303.8);
Tailwind
colors: {
  custom: {
    50: '#865ba4',
    500: '#4f157e',
    950: '#000000',
  },
}
SCSS
$custom: #4f157e;
$custom-light: #865ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f157e",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 273.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35417,
    "c": 0.16188,
    "h": 303.8
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#4F157E
secondary
#71B33C
accent
#EE3A8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F157E

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

Preview Lab → · Contrast checker → · Palette generator →

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