#4F1880#4F1880

#4F1880 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.161 H 302.7°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#4F1880
RGBrgb(79, 24, 128)
HSLhsl(272, 68%, 30%)
HSVhsv(272, 81%, 50%)
CMYKcmyk(38.3%, 81.3%, 0%, 49.8%)
CIE-LABlab(23.25, 44.76, -47.46)
CIE-LCHlch(23.25, 65.24, 313.32°)
OKLaboklab(35.88% 0.087 -0.1355)
OKLCHoklch(35.88% 0.161 302.7)
XYZxyz(7.4464, 3.8740, 20.7733)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1880 #498018
analogous
#1B1880 #4F1880 #80187D
triadic
#4F1880 #804F18 #18804F
tetradic
#4F1880 #801B18 #498018 #187D80
square
#4F1880 #801B18 #498018 #187D80
split-complementary
#4F1880 #7D8018 #18801B
monochromatic
#10051A #2F0E4C #4F1880 #6F22B4 #8E39DA

Accessibility & contrast

On white

11.83
#4F1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4F1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1880
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1880#FFFFFF#000000##FFFFFF
##4F18801.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1880;
/* rgb */ color: rgb(79, 24, 128);
/* oklch */ color: oklch(35.9% 0.161 302.7);
Tailwind
colors: {
  custom: {
    50: '#865ca6',
    500: '#4f1880',
    950: '#000000',
  },
}
SCSS
$custom: #4f1880;
$custom-light: #865ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1880",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 271.731,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35876,
    "c": 0.161,
    "h": 302.7
  },
  "luminance": 0.03874
}

Semantic roles & 50–950 ramp

primary
#4F1880
secondary
#77B440
accent
#EB3D8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1880

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

Preview Lab → · Contrast checker → · Palette generator →

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