#4F1A8D#4F1A8D

#4F1A8D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.173 H 298.1°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#4F1A8D
RGBrgb(79, 26, 141)
HSLhsl(268, 69%, 33%)
HSVhsv(268, 82%, 55%)
CMYKcmyk(44%, 81.6%, 0%, 44.7%)
CIE-LABlab(24.71, 47.22, -53.22)
CIE-LCHlch(24.71, 71.15, 311.58°)
OKLaboklab(37.26% 0.0814 -0.1524)
OKLCHoklch(37.26% 0.173 298.1)
XYZxyz(8.4003, 4.3240, 25.5862)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A8D #588D1A
analogous
#1A1F8D #4F1A8D #881A8D
triadic
#4F1A8D #8D4F1A #1A8D4F
tetradic
#4F1A8D #8D1A1F #588D1A #1A8D88
square
#4F1A8D #8D1A1F #588D1A #1A8D88
split-complementary
#4F1A8D #8D881A #1F8D1A
monochromatic
#150726 #321059 #4F1A8D #6C24C1 #8B45DD

Accessibility & contrast

On white

11.26
#4F1A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F1A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1A8D
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A8D#FFFFFF#000000##FFFFFF
##4F1A8D1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#3F3A54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f1a8d;
/* rgb */ color: rgb(79, 26, 141);
/* oklch */ color: oklch(37.3% 0.173 298.1);
Tailwind
colors: {
  custom: {
    50: '#875eaf',
    500: '#4f1a8d',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a8d;
$custom-light: #875eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a8d",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 267.652,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37261,
    "c": 0.17276,
    "h": 298.1
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#4F1A8D
secondary
#86BE45
accent
#EC3C9B
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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