#4F147B#4F147B

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

Color values

HEX#4F147B
RGBrgb(79, 20, 123)
HSLhsl(274, 72%, 28%)
HSVhsv(274, 84%, 48%)
CMYKcmyk(35.8%, 83.7%, 0%, 51.8%)
CIE-LABlab(22.28, 45.09, -45.88)
CIE-LCHlch(22.28, 64.32, 314.50°)
OKLaboklab(35.06% 0.0918 -0.1308)
OKLCHoklch(35.06% 0.16 305.1)
XYZxyz(7.0489, 3.5927, 19.0572)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F147B #407B14
analogous
#1B147B #4F147B #7B1473
triadic
#4F147B #7B4F14 #147B4F
tetradic
#4F147B #7B1B14 #407B14 #14737B
square
#4F147B #7B1B14 #407B14 #14737B
split-complementary
#4F147B #737B14 #147B1B
monochromatic
#11041A #2D0B46 #4F147B #711DB0 #922DDD

Accessibility & contrast

On white

12.22
#4F147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4F147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F147B
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F147B#FFFFFF#000000##FFFFFF
##4F147B1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#473048
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f147b;
/* rgb */ color: rgb(79, 20, 123);
/* oklch */ color: oklch(35.1% 0.160 305.1);
Tailwind
colors: {
  custom: {
    50: '#855aa2',
    500: '#4f147b',
    950: '#000000',
  },
}
SCSS
$custom: #4f147b;
$custom-light: #855aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f147b",
  "rgb": {
    "r": 79,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 274.369,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35059,
    "c": 0.15978,
    "h": 305.1
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#4F147B
secondary
#6DB13A
accent
#EF3987
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F147B

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

Preview Lab → · Contrast checker → · Palette generator →

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