#4F157B#4F157B

#4F157B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.159 H 304.9°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#4F157B
RGBrgb(79, 21, 123)
HSLhsl(274, 71%, 28%)
HSVhsv(274, 83%, 48%)
CMYKcmyk(35.8%, 82.9%, 0%, 51.8%)
CIE-LABlab(22.40, 44.72, -45.67)
CIE-LCHlch(22.40, 63.92, 314.39°)
OKLaboklab(35.15% 0.091 -0.1302)
OKLCHoklch(35.15% 0.159 304.9)
XYZxyz(7.0670, 3.6287, 19.0632)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F157B #417B15
analogous
#1C157B #4F157B #7B1574
triadic
#4F157B #7B4F15 #157B4F
tetradic
#4F157B #7B1C15 #417B15 #15747B
square
#4F157B #7B1C15 #417B15 #15747B
split-complementary
#4F157B #747B15 #157B1C
monochromatic
#11041A #2D0C47 #4F157B #711EAF #912FDB

Accessibility & contrast

On white

12.17
#4F157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F157B
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F157B#FFFFFF#000000##FFFFFF
##4F157B1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#473049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f157b;
/* rgb */ color: rgb(79, 21, 123);
/* oklch */ color: oklch(35.1% 0.159 304.9);
Tailwind
colors: {
  custom: {
    50: '#855ba2',
    500: '#4f157b',
    950: '#000000',
  },
}
SCSS
$custom: #4f157b;
$custom-light: #855ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f157b",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 274.118,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35148,
    "c": 0.15882,
    "h": 304.9
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#4F157B
secondary
#6EB03B
accent
#EE3A88
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F157B

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

Preview Lab → · Contrast checker → · Palette generator →

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