#4F1987#4F1987

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

Color values

HEX#4F1987
RGBrgb(79, 25, 135)
HSLhsl(269, 69%, 31%)
HSVhsv(269, 81%, 53%)
CMYKcmyk(41.5%, 81.5%, 0%, 47.1%)
CIE-LABlab(24.02, 46.11, -50.61)
CIE-LCHlch(24.02, 68.46, 312.33°)
OKLaboklab(36.61% 0.0841 -0.1447)
OKLCHoklch(36.61% 0.167 300.2)
XYZxyz(7.9442, 4.1067, 23.2911)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1987 #518719
analogous
#191A87 #4F1987 #861987
triadic
#4F1987 #874F19 #19874F
tetradic
#4F1987 #87191A #518719 #198786
square
#4F1987 #87191A #518719 #198786
split-complementary
#4F1987 #878619 #1A8719
monochromatic
#130620 #310F53 #4F1987 #6D23BB #8C3FDB

Accessibility & contrast

On white

11.53
#4F1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1987
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1987#FFFFFF#000000##FFFFFF
##4F19871.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#423750
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f1987;
/* rgb */ color: rgb(79, 25, 135);
/* oklch */ color: oklch(36.6% 0.167 300.2);
Tailwind
colors: {
  custom: {
    50: '#865dab',
    500: '#4f1987',
    950: '#000000',
  },
}
SCSS
$custom: #4f1987;
$custom-light: #865dab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1987",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 269.455,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36608,
    "c": 0.16737,
    "h": 300.2
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

primary
#4F1987
secondary
#7FBA41
accent
#EC3C95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1987

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

Preview Lab → · Contrast checker → · Palette generator →

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