#4F1B8D#4F1B8D

#4F1B8D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.172 H 298.0°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#4F1B8D
RGBrgb(79, 27, 141)
HSLhsl(267, 68%, 33%)
HSVhsv(267, 81%, 55%)
CMYKcmyk(44%, 80.9%, 0%, 44.7%)
CIE-LABlab(24.86, 46.81, -52.99)
CIE-LCHlch(24.86, 70.71, 311.46°)
OKLaboklab(37.36% 0.0806 -0.1517)
OKLCHoklch(37.36% 0.172 298)
XYZxyz(8.4229, 4.3691, 25.5937)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1B8D #598D1B
analogous
#1B208D #4F1B8D #881B8D
triadic
#4F1B8D #8D4F1B #1B8D4F
tetradic
#4F1B8D #8D1B20 #598D1B #1B8D88
square
#4F1B8D #8D1B20 #598D1B #1B8D88
split-complementary
#4F1B8D #8D881B #208D1B
monochromatic
#150726 #32115A #4F1B8D #6C25C0 #8B47DC

Accessibility & contrast

On white

11.21
#4F1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4F1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1B8D
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1B8D#FFFFFF#000000##FFFFFF
##4F1B8D1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#3F3B54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f1b8d;
/* rgb */ color: rgb(79, 27, 141);
/* oklch */ color: oklch(37.4% 0.172 298.0);
Tailwind
colors: {
  custom: {
    50: '#875eaf',
    500: '#4f1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #4f1b8d;
$custom-light: #875eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1b8d",
  "rgb": {
    "r": 79,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 267.368,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37359,
    "c": 0.1718,
    "h": 298
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#4F1B8D
secondary
#87BD46
accent
#EB3D9C
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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