#4F1FA1#4F1FA1

#4F1FA1 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.190 H 292.0°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4F1FA1
RGBrgb(79, 31, 161)
HSLhsl(262, 68%, 38%)
HSVhsv(262, 81%, 63%)
CMYKcmyk(50.9%, 80.7%, 0%, 36.9%)
CIE-LABlab(27.34, 50.38, -61.21)
CIE-LCHlch(27.34, 79.27, 309.46°)
OKLaboklab(39.66% 0.0712 -0.1758)
OKLCHoklch(39.66% 0.19 292)
XYZxyz(10.1456, 5.2151, 34.1833)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1FA1 #71A11F
analogous
#1F30A1 #4F1FA1 #901FA1
triadic
#4F1FA1 #A14F1F #1FA14F
tetradic
#4F1FA1 #A11F30 #71A11F #1FA190
square
#4F1FA1 #A11F30 #71A11F #1FA190
split-complementary
#4F1FA1 #A1901F #30A11F
monochromatic
#1D0B3A #36156E #4F1FA1 #6829D4 #8C5BDF

Accessibility & contrast

On white

10.28
#4F1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1FA1
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1FA1#FFFFFF#000000##FFFFFF
##4F1FA11.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#334560
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f1fa1;
/* rgb */ color: rgb(79, 31, 161);
/* oklch */ color: oklch(39.7% 0.190 292.0);
Tailwind
colors: {
  custom: {
    50: '#8961be',
    500: '#4f1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #4f1fa1;
$custom-light: #8961be;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1fa1",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 262.154,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39664,
    "c": 0.18968,
    "h": 292
  },
  "luminance": 0.05215
}

Semantic roles & 50–950 ramp

primary
#4F1FA1
secondary
#9CC458
accent
#EB3DAB
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4F1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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