#4F1D8D#4F1D8D

#4F1D8D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.170 H 297.7°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#4F1D8D
RGBrgb(79, 29, 141)
HSLhsl(267, 66%, 33%)
HSVhsv(267, 79%, 55%)
CMYKcmyk(44%, 79.4%, 0%, 44.7%)
CIE-LABlab(25.15, 45.97, -52.51)
CIE-LCHlch(25.15, 69.79, 311.20°)
OKLaboklab(37.56% 0.079 -0.1503)
OKLCHoklch(37.56% 0.17 297.7)
XYZxyz(8.4703, 4.4639, 25.6095)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1D8D #5B8D1D
analogous
#1D238D #4F1D8D #871D8D
triadic
#4F1D8D #8D4F1D #1D8D4F
tetradic
#4F1D8D #8D1D23 #5B8D1D #1D8D87
square
#4F1D8D #8D1D23 #5B8D1D #1D8D87
split-complementary
#4F1D8D #8D871D #238D1D
monochromatic
#160827 #33135A #4F1D8D #6B27C0 #8B4BDA

Accessibility & contrast

On white

11.09
#4F1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4F1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1D8D
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1D8D#FFFFFF#000000##FFFFFF
##4F1D8D1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#3F3C55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f1d8d;
/* rgb */ color: rgb(79, 29, 141);
/* oklch */ color: oklch(37.6% 0.170 297.7);
Tailwind
colors: {
  custom: {
    50: '#875faf',
    500: '#4f1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #4f1d8d;
$custom-light: #875faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1d8d",
  "rgb": {
    "r": 79,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 266.786,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37563,
    "c": 0.16981,
    "h": 297.7
  },
  "luminance": 0.04464
}

Semantic roles & 50–950 ramp

primary
#4F1D8D
secondary
#89BC4A
accent
#E93F9D
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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