#4F1771#4F1771

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

Color values

HEX#4F1771
RGBrgb(79, 23, 113)
HSLhsl(277, 66%, 27%)
HSVhsv(277, 80%, 44%)
CMYKcmyk(30.1%, 79.6%, 0%, 55.7%)
CIE-LABlab(21.83, 41.54, -40.20)
CIE-LCHlch(21.83, 57.81, 315.94°)
OKLaboklab(34.48% 0.0918 -0.1141)
OKLCHoklch(34.48% 0.146 308.8)
XYZxyz(6.5109, 3.4674, 15.9459)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1771 #397117
analogous
#221771 #4F1771 #711766
triadic
#4F1771 #714F17 #17714F
tetradic
#4F1771 #712217 #397117 #176671
square
#4F1771 #712217 #397117 #176671
split-complementary
#4F1771 #667117 #177122
monochromatic
#120519 #2B0D3E #4F1771 #7321A4 #962ED4

Accessibility & contrast

On white

12.40
#4F1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1771
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1771#FFFFFF#000000##FFFFFF
##4F17711.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#4A2D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f1771;
/* rgb */ color: rgb(79, 23, 113);
/* oklch */ color: oklch(34.5% 0.146 308.8);
Tailwind
colors: {
  custom: {
    50: '#845b9a',
    500: '#4f1771',
    950: '#000000',
  },
}
SCSS
$custom: #4f1771;
$custom-light: #845b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1771",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 277.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34478,
    "c": 0.14645,
    "h": 308.8
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#4F1771
secondary
#65A73D
accent
#E93F7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1771

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

Preview Lab → · Contrast checker → · Palette generator →

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