#4F1B84#4F1B84

#4F1B84 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.162 H 300.9°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4F1B84
RGBrgb(79, 27, 132)
HSLhsl(270, 66%, 31%)
HSVhsv(270, 80%, 52%)
CMYKcmyk(40.2%, 79.5%, 0%, 48.2%)
CIE-LABlab(24.04, 44.52, -48.70)
CIE-LCHlch(24.04, 65.98, 312.43°)
OKLaboklab(36.54% 0.0833 -0.1391)
OKLCHoklch(36.54% 0.162 300.9)
XYZxyz(7.7802, 4.1120, 22.2091)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1B84 #50841B
analogous
#1B1B84 #4F1B84 #831B84
triadic
#4F1B84 #844F1B #1B844F
tetradic
#4F1B84 #841B1B #50841B #1B8483
square
#4F1B84 #841B1B #50841B #1B8483
split-complementary
#4F1B84 #84831B #1B841B
monochromatic
#12061E #311151 #4F1B84 #6D25B7 #8C41D8

Accessibility & contrast

On white

11.52
#4F1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1B84
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1B84#FFFFFF#000000##FFFFFF
##4F1B841.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#43374F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f1b84;
/* rgb */ color: rgb(79, 27, 132);
/* oklch */ color: oklch(36.5% 0.162 300.9);
Tailwind
colors: {
  custom: {
    50: '#865ea9',
    500: '#4f1b84',
    950: '#000000',
  },
}
SCSS
$custom: #4f1b84;
$custom-light: #865ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1b84",
  "rgb": {
    "r": 79,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 269.714,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36536,
    "c": 0.16214,
    "h": 300.9
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#4F1B84
secondary
#7EB743
accent
#E93F95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1B84

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

Preview Lab → · Contrast checker → · Palette generator →

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