#4F1980#4F1980

#4F1980 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.160 H 302.6°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4F1980
RGBrgb(79, 25, 128)
HSLhsl(271, 67%, 30%)
HSVhsv(271, 80%, 50%)
CMYKcmyk(38.3%, 80.5%, 0%, 49.8%)
CIE-LABlab(23.39, 44.36, -47.23)
CIE-LCHlch(23.39, 64.79, 313.20°)
OKLaboklab(35.98% 0.0862 -0.1348)
OKLCHoklch(35.98% 0.16 302.6)
XYZxyz(7.4674, 3.9160, 20.7803)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1980 #4A8019
analogous
#1B1980 #4F1980 #80197E
triadic
#4F1980 #804F19 #19804F
tetradic
#4F1980 #801B19 #4A8019 #197E80
square
#4F1980 #801B19 #4A8019 #197E80
split-complementary
#4F1980 #7E8019 #19801B
monochromatic
#10051A #2F0F4D #4F1980 #6F23B3 #8E3BD9

Accessibility & contrast

On white

11.78
#4F1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4F1980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1980
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1980#FFFFFF#000000##FFFFFF
##4F19801.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#45344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1980;
/* rgb */ color: rgb(79, 25, 128);
/* oklch */ color: oklch(36.0% 0.160 302.6);
Tailwind
colors: {
  custom: {
    50: '#865da6',
    500: '#4f1980',
    950: '#000000',
  },
}
SCSS
$custom: #4f1980;
$custom-light: #865da6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1980",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 271.456,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.35975,
    "c": 0.15997,
    "h": 302.6
  },
  "luminance": 0.03916
}

Semantic roles & 50–950 ramp

primary
#4F1980
secondary
#78B441
accent
#EA3E90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1980

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

Preview Lab → · Contrast checker → · Palette generator →

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