#4F1F8A#4F1F8A

#4F1F8A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.164 H 298.4°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#4F1F8A
RGBrgb(79, 31, 138)
HSLhsl(267, 63%, 33%)
HSVhsv(267, 78%, 54%)
CMYKcmyk(42.8%, 77.5%, 0%, 45.9%)
CIE-LABlab(25.19, 44.29, -50.57)
CIE-LCHlch(25.19, 67.23, 311.21°)
OKLaboklab(37.51% 0.0781 -0.1446)
OKLCHoklch(37.51% 0.164 298.4)
XYZxyz(8.3007, 4.4771, 24.4667)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F8A #5A8A1F
analogous
#1F248A #4F1F8A #841F8A
triadic
#4F1F8A #8A4F1F #1F8A4F
tetradic
#4F1F8A #8A1F24 #5A8A1F #1F8A84
square
#4F1F8A #8A1F24 #5A8A1F #1F8A84
split-complementary
#4F1F8A #8A841F #248A1F
monochromatic
#160926 #321458 #4F1F8A #6C2ABC #8B4CD7

Accessibility & contrast

On white

11.08
#4F1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4F1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F8A
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F8A#FFFFFF#000000##FFFFFF
##4F1F8A1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#403B53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f1f8a;
/* rgb */ color: rgb(79, 31, 138);
/* oklch */ color: oklch(37.5% 0.164 298.4);
Tailwind
colors: {
  custom: {
    50: '#8660ad',
    500: '#4f1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f8a;
$custom-light: #8660ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f8a",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 266.916,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37508,
    "c": 0.16438,
    "h": 298.4
  },
  "luminance": 0.04477
}

Semantic roles & 50–950 ramp

primary
#4F1F8A
secondary
#88BA4B
accent
#E6419C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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