#4F1F86#4F1F86

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

Color values

HEX#4F1F86
RGBrgb(79, 31, 134)
HSLhsl(268, 62%, 32%)
HSVhsv(268, 77%, 53%)
CMYKcmyk(41%, 76.9%, 0%, 47.5%)
CIE-LABlab(24.84, 43.25, -48.65)
CIE-LCHlch(24.84, 65.09, 311.64°)
OKLaboklab(37.15% 0.0791 -0.139)
OKLCHoklch(37.15% 0.16 299.6)
XYZxyz(8.0164, 4.3634, 22.9695)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F86 #56861F
analogous
#1F2386 #4F1F86 #821F86
triadic
#4F1F86 #864F1F #1F864F
tetradic
#4F1F86 #861F23 #56861F #1F8682
square
#4F1F86 #861F23 #56861F #1F8682
split-complementary
#4F1F86 #86821F #23861F
monochromatic
#140823 #321454 #4F1F86 #6C2AB8 #8B4AD5

Accessibility & contrast

On white

11.21
#4F1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4F1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F86
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F86#FFFFFF#000000##FFFFFF
##4F1F861.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#423A51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f1f86;
/* rgb */ color: rgb(79, 31, 134);
/* oklch */ color: oklch(37.2% 0.160 299.6);
Tailwind
colors: {
  custom: {
    50: '#8660aa',
    500: '#4f1f86',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f86;
$custom-light: #8660aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f86",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 267.961,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37152,
    "c": 0.15993,
    "h": 299.6
  },
  "luminance": 0.04363
}

Semantic roles & 50–950 ramp

primary
#4F1F86
secondary
#84B849
accent
#E54299
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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