#4F1170#4F1170

#4F1170 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.152 H 309.9°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#4F1170
RGBrgb(79, 17, 112)
HSLhsl(279, 74%, 25%)
HSVhsv(279, 85%, 44%)
CMYKcmyk(29.5%, 84.8%, 0%, 56.1%)
CIE-LABlab(20.95, 43.59, -40.97)
CIE-LCHlch(20.95, 59.82, 316.77°)
OKLaboklab(33.84% 0.0974 -0.1163)
OKLCHoklch(33.84% 0.152 309.9)
XYZxyz(6.3489, 3.2332, 15.6157)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1170 #327011
analogous
#201170 #4F1170 #701161
triadic
#4F1170 #704F11 #11704F
tetradic
#4F1170 #702011 #327011 #116170
square
#4F1170 #702011 #327011 #116170
split-complementary
#4F1170 #617011 #117020
monochromatic
#13041B #2A093B #4F1170 #7419A5 #9A21DA

Accessibility & contrast

On white

12.75
#4F1170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4F1170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1170
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1170#FFFFFF#000000##FFFFFF
##4F11701.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#4A2A41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4f1170;
/* rgb */ color: rgb(79, 17, 112);
/* oklch */ color: oklch(33.8% 0.152 309.9);
Tailwind
colors: {
  custom: {
    50: '#85589a',
    500: '#4f1170',
    950: '#000000',
  },
}
SCSS
$custom: #4f1170;
$custom-light: #85589a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1170",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 112
  },
  "hsl": {
    "h": 279.158,
    "s": 73.643,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33841,
    "c": 0.1517,
    "h": 309.9
  },
  "luminance": 0.03233
}

Semantic roles & 50–950 ramp

primary
#4F1170
secondary
#5DA735
accent
#F03778
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1170

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

Preview Lab → · Contrast checker → · Palette generator →

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