#4F1789#4F1789

#4F1789 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.171 H 299.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#4F1789
RGBrgb(79, 23, 137)
HSLhsl(269, 71%, 31%)
HSVhsv(269, 83%, 54%)
CMYKcmyk(42.3%, 83.2%, 0%, 46.3%)
CIE-LABlab(23.94, 47.39, -52.00)
CIE-LCHlch(23.94, 70.35, 312.34°)
OKLaboklab(36.61% 0.085 -0.1488)
OKLCHoklch(36.61% 0.171 299.7)
XYZxyz(8.0451, 4.0811, 24.0259)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1789 #518917
analogous
#171889 #4F1789 #881789
triadic
#4F1789 #894F17 #17894F
tetradic
#4F1789 #891718 #518917 #178988
square
#4F1789 #891718 #518917 #178988
split-complementary
#4F1789 #898817 #188917
monochromatic
#130520 #310E55 #4F1789 #6D20BD #8C3CDE

Accessibility & contrast

On white

11.56
#4F1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4F1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1789
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1789#FFFFFF#000000##FFFFFF
##4F17891.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#413751
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f1789;
/* rgb */ color: rgb(79, 23, 137);
/* oklch */ color: oklch(36.6% 0.171 299.7);
Tailwind
colors: {
  custom: {
    50: '#875cac',
    500: '#4f1789',
    950: '#000000',
  },
}
SCSS
$custom: #4f1789;
$custom-light: #875cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1789",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 269.474,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36607,
    "c": 0.17135,
    "h": 299.7
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#4F1789
secondary
#7FBD3F
accent
#EE3A95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F1789

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

Preview Lab → · Contrast checker → · Palette generator →

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