#4F157D#4F157D

#4F157D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.161 H 304.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#4F157D
RGBrgb(79, 21, 125)
HSLhsl(273, 71%, 29%)
HSVhsv(273, 83%, 49%)
CMYKcmyk(36.8%, 83.2%, 0%, 51%)
CIE-LABlab(22.58, 45.20, -46.65)
CIE-LCHlch(22.58, 64.96, 314.09°)
OKLaboklab(35.33% 0.0904 -0.1331)
OKLCHoklch(35.33% 0.161 304.2)
XYZxyz(7.1934, 3.6793, 19.7293)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F157D #437D15
analogous
#1B157D #4F157D #7D1577
triadic
#4F157D #7D4F15 #157D4F
tetradic
#4F157D #7D1B15 #437D15 #15777D
square
#4F157D #7D1B15 #437D15 #15777D
split-complementary
#4F157D #777D15 #157D1B
monochromatic
#11041A #2E0C49 #4F157D #701EB1 #9030DC

Accessibility & contrast

On white

12.10
#4F157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F157D
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F157D#FFFFFF#000000##FFFFFF
##4F157D1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#46314A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f157d;
/* rgb */ color: rgb(79, 21, 125);
/* oklch */ color: oklch(35.3% 0.161 304.2);
Tailwind
colors: {
  custom: {
    50: '#865ba3',
    500: '#4f157d',
    950: '#000000',
  },
}
SCSS
$custom: #4f157d;
$custom-light: #865ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f157d",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 273.462,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35327,
    "c": 0.16086,
    "h": 304.2
  },
  "luminance": 0.03679
}

Semantic roles & 50–950 ramp

primary
#4F157D
secondary
#70B23C
accent
#EE3A8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F157D

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

Preview Lab → · Contrast checker → · Palette generator →

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