#4F1574#4F1574

#4F1574 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.152 H 307.8°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#4F1574
RGBrgb(79, 21, 116)
HSLhsl(277, 69%, 27%)
HSVhsv(277, 82%, 45%)
CMYKcmyk(31.9%, 81.9%, 0%, 54.5%)
CIE-LABlab(21.80, 43.05, -42.18)
CIE-LCHlch(21.80, 60.27, 315.58°)
OKLaboklab(34.54% 0.0929 -0.1199)
OKLCHoklch(34.54% 0.152 307.8)
XYZxyz(6.6443, 3.4596, 16.8374)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1574 #3A7415
analogous
#201574 #4F1574 #74156A
triadic
#4F1574 #744F15 #15744F
tetradic
#4F1574 #742015 #3A7415 #156A74
square
#4F1574 #742015 #3A7415 #156A74
split-complementary
#4F1574 #6A7415 #157420
monochromatic
#12051A #2C0C40 #4F1574 #721EA8 #952BD9

Accessibility & contrast

On white

12.41
#4F1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4F1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1574
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1574#FFFFFF#000000##FFFFFF
##4F15741.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#492D44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f1574;
/* rgb */ color: rgb(79, 21, 116);
/* oklch */ color: oklch(34.5% 0.152 307.8);
Tailwind
colors: {
  custom: {
    50: '#855a9d',
    500: '#4f1574',
    950: '#000000',
  },
}
SCSS
$custom: #4f1574;
$custom-light: #855a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1574",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 276.632,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34537,
    "c": 0.15171,
    "h": 307.8
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#4F1574
secondary
#66AA3B
accent
#EC3C80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1574

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

Preview Lab → · Contrast checker → · Palette generator →

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