#4F1589#4F1589

#4F1589 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.173 H 300.0°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#4F1589
RGBrgb(79, 21, 137)
HSLhsl(270, 73%, 31%)
HSVhsv(270, 85%, 54%)
CMYKcmyk(42.3%, 84.7%, 0%, 46.3%)
CIE-LABlab(23.69, 48.12, -52.41)
CIE-LCHlch(23.69, 71.15, 312.56°)
OKLaboklab(36.43% 0.0865 -0.15)
OKLCHoklch(36.43% 0.173 300)
XYZxyz(8.0068, 4.0046, 24.0132)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1589 #4F8915
analogous
#151589 #4F1589 #891589
triadic
#4F1589 #894F15 #15894F
tetradic
#4F1589 #891515 #4F8915 #158989
square
#4F1589 #891515 #4F8915 #158989
split-complementary
#4F1589 #898915 #158915
monochromatic
#12051F #300D54 #4F1589 #6E1DBE #8C38E0

Accessibility & contrast

On white

11.66
#4F1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4F1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1589
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1589#FFFFFF#000000##FFFFFF
##4F15891.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003787
Tritanopia (blue-blind)
#413751
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1589;
/* rgb */ color: rgb(79, 21, 137);
/* oklch */ color: oklch(36.4% 0.173 300.0);
Tailwind
colors: {
  custom: {
    50: '#875bac',
    500: '#4f1589',
    950: '#000000',
  },
}
SCSS
$custom: #4f1589;
$custom-light: #875bac;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1589",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 270,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36433,
    "c": 0.17309,
    "h": 300
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#4F1589
secondary
#7DBD3D
accent
#F03894
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F1589

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

Preview Lab → · Contrast checker → · Palette generator →

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