#4F1172#4F1172

#4F1172 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.154 H 309.1°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#4F1172
RGBrgb(79, 17, 114)
HSLhsl(278, 74%, 26%)
HSVhsv(278, 85%, 45%)
CMYKcmyk(30.7%, 85.1%, 0%, 55.3%)
CIE-LABlab(21.13, 44.04, -41.99)
CIE-LCHlch(21.13, 60.85, 316.37°)
OKLaboklab(34.01% 0.0968 -0.1193)
OKLCHoklch(34.01% 0.154 309.1)
XYZxyz(6.4615, 3.2782, 16.2087)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1172 #347211
analogous
#1F1172 #4F1172 #721164
triadic
#4F1172 #724F11 #11724F
tetradic
#4F1172 #721F11 #347211 #116472
square
#4F1172 #721F11 #347211 #116472
split-complementary
#4F1172 #647211 #11721F
monochromatic
#12041B #2A093D #4F1172 #7419A7 #9921DD

Accessibility & contrast

On white

12.68
#4F1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4F1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1172
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1172#FFFFFF#000000##FFFFFF
##4F11721.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#4A2B43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1172;
/* rgb */ color: rgb(79, 17, 114);
/* oklch */ color: oklch(34.0% 0.154 309.1);
Tailwind
colors: {
  custom: {
    50: '#85589b',
    500: '#4f1172',
    950: '#000000',
  },
}
SCSS
$custom: #4f1172;
$custom-light: #85589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1172",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 278.351,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34013,
    "c": 0.15365,
    "h": 309.1
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#4F1172
secondary
#5FA936
accent
#F1377A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1172

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

Preview Lab → · Contrast checker → · Palette generator →

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