#4F1D8A#4F1D8A

#4F1D8A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.167 H 298.7°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#4F1D8A
RGBrgb(79, 29, 138)
HSLhsl(268, 65%, 33%)
HSVhsv(268, 79%, 54%)
CMYKcmyk(42.8%, 79%, 0%, 45.9%)
CIE-LABlab(24.88, 45.19, -51.09)
CIE-LCHlch(24.88, 68.20, 311.50°)
OKLaboklab(37.29% 0.0799 -0.1461)
OKLCHoklch(37.29% 0.167 298.7)
XYZxyz(8.2501, 4.3758, 24.4498)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1D8A #588A1D
analogous
#1D228A #4F1D8A #851D8A
triadic
#4F1D8A #8A4F1D #1D8A4F
tetradic
#4F1D8A #8A1D22 #588A1D #1D8A85
square
#4F1D8A #8A1D22 #588A1D #1D8A85
split-complementary
#4F1D8A #8A851D #228A1D
monochromatic
#150825 #321257 #4F1D8A #6C28BD #8B49D9

Accessibility & contrast

On white

11.20
#4F1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4F1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1D8A
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1D8A#FFFFFF#000000##FFFFFF
##4F1D8A1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#403A53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f1d8a;
/* rgb */ color: rgb(79, 29, 138);
/* oklch */ color: oklch(37.3% 0.167 298.7);
Tailwind
colors: {
  custom: {
    50: '#875fad',
    500: '#4f1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #4f1d8a;
$custom-light: #875fad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1d8a",
  "rgb": {
    "r": 79,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 267.523,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37289,
    "c": 0.16653,
    "h": 298.7
  },
  "luminance": 0.04376
}

Semantic roles & 50–950 ramp

primary
#4F1D8A
secondary
#86BB48
accent
#E8409B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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