#4F1472#4F1472

#4F1472 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.151 H 308.7°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4F1472
RGBrgb(79, 20, 114)
HSLhsl(278, 70%, 26%)
HSVhsv(278, 82%, 45%)
CMYKcmyk(30.7%, 82.5%, 0%, 55.3%)
CIE-LABlab(21.50, 42.96, -41.38)
CIE-LCHlch(21.50, 59.65, 316.07°)
OKLaboklab(34.27% 0.0943 -0.1176)
OKLCHoklch(34.27% 0.151 308.7)
XYZxyz(6.5112, 3.3776, 16.2253)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1472 #377214
analogous
#201472 #4F1472 #721466
triadic
#4F1472 #724F14 #14724F
tetradic
#4F1472 #722014 #377214 #146672
square
#4F1472 #722014 #377214 #146672
split-complementary
#4F1472 #667214 #147220
monochromatic
#12051A #2B0B3E #4F1472 #731DA6 #9727D9

Accessibility & contrast

On white

12.53
#4F1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4F1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1472
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1472#FFFFFF#000000##FFFFFF
##4F14721.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#492C43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f1472;
/* rgb */ color: rgb(79, 20, 114);
/* oklch */ color: oklch(34.3% 0.151 308.7);
Tailwind
colors: {
  custom: {
    50: '#855a9b',
    500: '#4f1472',
    950: '#000000',
  },
}
SCSS
$custom: #4f1472;
$custom-light: #855a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1472",
  "rgb": {
    "r": 79,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 277.66,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34273,
    "c": 0.15072,
    "h": 308.7
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#4F1472
secondary
#63A839
accent
#ED3B7D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1472

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

Preview Lab → · Contrast checker → · Palette generator →

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