#4F1889#4F1889

#4F1889 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.170 H 299.6°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4F1889
RGBrgb(79, 24, 137)
HSLhsl(269, 70%, 32%)
HSVhsv(269, 82%, 54%)
CMYKcmyk(42.3%, 82.5%, 0%, 46.3%)
CIE-LABlab(24.07, 47.00, -51.78)
CIE-LCHlch(24.07, 69.93, 312.23°)
OKLaboklab(36.7% 0.0843 -0.1481)
OKLCHoklch(36.7% 0.17 299.6)
XYZxyz(8.0653, 4.1216, 24.0327)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1889 #528918
analogous
#181989 #4F1889 #881889
triadic
#4F1889 #894F18 #18894F
tetradic
#4F1889 #891819 #528918 #188988
square
#4F1889 #891819 #528918 #188988
split-complementary
#4F1889 #898818 #198918
monochromatic
#130621 #310F55 #4F1889 #6D21BD #8C3EDD

Accessibility & contrast

On white

11.51
#4F1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1889
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1889#FFFFFF#000000##FFFFFF
##4F18891.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1889;
/* rgb */ color: rgb(79, 24, 137);
/* oklch */ color: oklch(36.7% 0.170 299.6);
Tailwind
colors: {
  custom: {
    50: '#875dac',
    500: '#4f1889',
    950: '#000000',
  },
}
SCSS
$custom: #4f1889;
$custom-light: #875dac;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1889",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 269.204,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36698,
    "c": 0.17042,
    "h": 299.6
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#4F1889
secondary
#80BD40
accent
#ED3B96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F1889

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

Preview Lab → · Contrast checker → · Palette generator →

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