#4F1A82#4F1A82

#4F1A82 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.161 H 301.7°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#4F1A82
RGBrgb(79, 26, 130)
HSLhsl(271, 67%, 31%)
HSVhsv(271, 80%, 51%)
CMYKcmyk(39.2%, 80%, 0%, 49%)
CIE-LABlab(23.71, 44.44, -47.97)
CIE-LCHlch(23.71, 65.39, 312.81°)
OKLaboklab(36.25% 0.0847 -0.137)
OKLCHoklch(36.25% 0.161 301.7)
XYZxyz(7.6221, 4.0127, 21.4877)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A82 #4D821A
analogous
#1B1A82 #4F1A82 #821A81
triadic
#4F1A82 #824F1A #1A824F
tetradic
#4F1A82 #821B1A #4D821A #1A8182
square
#4F1A82 #821B1A #4D821A #1A8182
split-complementary
#4F1A82 #81821A #1A821B
monochromatic
#11061C #30104F #4F1A82 #6E24B5 #8D3ED8

Accessibility & contrast

On white

11.65
#4F1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4F1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1A82
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A82#FFFFFF#000000##FFFFFF
##4F1A821.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#44364E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1a82;
/* rgb */ color: rgb(79, 26, 130);
/* oklch */ color: oklch(36.3% 0.161 301.7);
Tailwind
colors: {
  custom: {
    50: '#865da7',
    500: '#4f1a82',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a82;
$custom-light: #865da7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a82",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 270.577,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36254,
    "c": 0.16105,
    "h": 301.7
  },
  "luminance": 0.04013
}

Semantic roles & 50–950 ramp

primary
#4F1A82
secondary
#7BB642
accent
#EA3E92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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