#4F1F97#4F1F97

#4F1F97 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.179 H 294.6°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#4F1F97
RGBrgb(79, 31, 151)
HSLhsl(264, 66%, 36%)
HSVhsv(264, 79%, 59%)
CMYKcmyk(47.7%, 79.5%, 0%, 40.8%)
CIE-LABlab(26.38, 47.72, -56.67)
CIE-LCHlch(26.38, 74.09, 310.10°)
OKLaboklab(38.71% 0.0744 -0.1625)
OKLCHoklch(38.71% 0.179 294.6)
XYZxyz(9.2988, 4.8763, 29.7234)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F97 #67971F
analogous
#1F2B97 #4F1F97 #8B1F97
triadic
#4F1F97 #974F1F #1F974F
tetradic
#4F1F97 #971F2B #67971F #1F978B
square
#4F1F97 #971F2B #67971F #1F978B
split-complementary
#4F1F97 #978B1F #2B971F
monochromatic
#1A0A31 #341564 #4F1F97 #6A29CA #8B54DC

Accessibility & contrast

On white

10.63
#4F1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4F1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F97
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F97#FFFFFF#000000##FFFFFF
##4F1F971.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#3A415B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f1f97;
/* rgb */ color: rgb(79, 31, 151);
/* oklch */ color: oklch(38.7% 0.179 294.6);
Tailwind
colors: {
  custom: {
    50: '#8861b7',
    500: '#4f1f97',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f97;
$custom-light: #8861b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f97",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 264,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38706,
    "c": 0.17875,
    "h": 294.6
  },
  "luminance": 0.04877
}

Semantic roles & 50–950 ramp

primary
#4F1F97
secondary
#94BF52
accent
#E93FA5
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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