#4F1F87#4F1F87

#4F1F87 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.161 H 299.3°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#4F1F87
RGBrgb(79, 31, 135)
HSLhsl(268, 63%, 33%)
HSVhsv(268, 77%, 53%)
CMYKcmyk(41.5%, 77%, 0%, 47.1%)
CIE-LABlab(24.93, 43.51, -49.13)
CIE-LCHlch(24.93, 65.63, 311.53°)
OKLaboklab(37.24% 0.0789 -0.1404)
OKLCHoklch(37.24% 0.161 299.3)
XYZxyz(8.0865, 4.3914, 23.3386)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F87 #57871F
analogous
#1F2387 #4F1F87 #831F87
triadic
#4F1F87 #874F1F #1F874F
tetradic
#4F1F87 #871F23 #57871F #1F8783
square
#4F1F87 #871F23 #57871F #1F8783
split-complementary
#4F1F87 #87831F #23871F
monochromatic
#150823 #321455 #4F1F87 #6C2AB9 #8B4BD6

Accessibility & contrast

On white

11.18
#4F1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4F1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F87
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F87#FFFFFF#000000##FFFFFF
##4F1F871.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#423A52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f1f87;
/* rgb */ color: rgb(79, 31, 135);
/* oklch */ color: oklch(37.2% 0.161 299.3);
Tailwind
colors: {
  custom: {
    50: '#8660ab',
    500: '#4f1f87',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f87;
$custom-light: #8660ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f87",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 267.692,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37241,
    "c": 0.16104,
    "h": 299.3
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#4F1F87
secondary
#85B84A
accent
#E6429A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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