#4F1971#4F1971

#4F1971 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.144 H 308.5°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4F1971
RGBrgb(79, 25, 113)
HSLhsl(277, 64%, 27%)
HSVhsv(277, 78%, 44%)
CMYKcmyk(30.1%, 77.9%, 0%, 55.7%)
CIE-LABlab(22.12, 40.69, -39.72)
CIE-LCHlch(22.12, 56.86, 315.69°)
OKLaboklab(34.69% 0.0898 -0.1127)
OKLCHoklch(34.69% 0.144 308.5)
XYZxyz(6.5521, 3.5499, 15.9596)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1971 #3B7119
analogous
#231971 #4F1971 #711967
triadic
#4F1971 #714F19 #19714F
tetradic
#4F1971 #712319 #3B7119 #196771
square
#4F1971 #712319 #3B7119 #196771
split-complementary
#4F1971 #677119 #197123
monochromatic
#120619 #2C0E3F #4F1971 #7224A3 #9433D2

Accessibility & contrast

On white

12.28
#4F1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4F1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1971
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1971#FFFFFF#000000##FFFFFF
##4F19711.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#4A2E44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1971;
/* rgb */ color: rgb(79, 25, 113);
/* oklch */ color: oklch(34.7% 0.144 308.5);
Tailwind
colors: {
  custom: {
    50: '#845c9a',
    500: '#4f1971',
    950: '#000000',
  },
}
SCSS
$custom: #4f1971;
$custom-light: #845c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1971",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 276.818,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34688,
    "c": 0.14412,
    "h": 308.5
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#4F1971
secondary
#67A640
accent
#E74181
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1971

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

Preview Lab → · Contrast checker → · Palette generator →

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