#4F1F8D#4F1F8D

#4F1F8D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.168 H 297.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#4F1F8D
RGBrgb(79, 31, 141)
HSLhsl(266, 64%, 34%)
HSVhsv(266, 78%, 55%)
CMYKcmyk(44%, 78%, 0%, 44.7%)
CIE-LABlab(25.46, 45.08, -52.00)
CIE-LCHlch(25.46, 68.82, 310.92°)
OKLaboklab(37.78% 0.0773 -0.1488)
OKLCHoklch(37.78% 0.168 297.4)
XYZxyz(8.5209, 4.5652, 25.6264)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F8D #5D8D1F
analogous
#1F268D #4F1F8D #861F8D
triadic
#4F1F8D #8D4F1F #1F8D4F
tetradic
#4F1F8D #8D1F26 #5D8D1F #1F8D86
square
#4F1F8D #8D1F26 #5D8D1F #1F8D86
split-complementary
#4F1F8D #8D861F #268D1F
monochromatic
#170929 #33145B #4F1F8D #6B2ABF #8A4ED8

Accessibility & contrast

On white

10.98
#4F1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4F1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F8D
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F8D#FFFFFF#000000##FFFFFF
##4F1F8D1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#3F3D55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f1f8d;
/* rgb */ color: rgb(79, 31, 141);
/* oklch */ color: oklch(37.8% 0.168 297.4);
Tailwind
colors: {
  custom: {
    50: '#8760af',
    500: '#4f1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f8d;
$custom-light: #8760af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f8d",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 266.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37779,
    "c": 0.16771,
    "h": 297.4
  },
  "luminance": 0.04565
}

Semantic roles & 50–950 ramp

primary
#4F1F8D
secondary
#8BBB4D
accent
#E7419E
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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