#4F1E87#4F1E87

#4F1E87 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.162 H 299.5°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#4F1E87
RGBrgb(79, 30, 135)
HSLhsl(268, 64%, 32%)
HSVhsv(268, 78%, 53%)
CMYKcmyk(41.5%, 77.8%, 0%, 47.1%)
CIE-LABlab(24.77, 43.96, -49.39)
CIE-LCHlch(24.77, 66.13, 311.67°)
OKLaboklab(37.13% 0.0798 -0.1412)
OKLCHoklch(37.13% 0.162 299.5)
XYZxyz(8.0608, 4.3400, 23.3300)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1E87 #56871E
analogous
#1E2287 #4F1E87 #831E87
triadic
#4F1E87 #874F1E #1E874F
tetradic
#4F1E87 #871E22 #56871E #1E8783
square
#4F1E87 #871E22 #56871E #1E8783
split-complementary
#4F1E87 #87831E #22871E
monochromatic
#140823 #321355 #4F1E87 #6C29B9 #8B49D7

Accessibility & contrast

On white

11.24
#4F1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1E87
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1E87#FFFFFF#000000##FFFFFF
##4F1E871.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1e87;
/* rgb */ color: rgb(79, 30, 135);
/* oklch */ color: oklch(37.1% 0.162 299.5);
Tailwind
colors: {
  custom: {
    50: '#865fab',
    500: '#4f1e87',
    950: '#000000',
  },
}
SCSS
$custom: #4f1e87;
$custom-light: #865fab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1e87",
  "rgb": {
    "r": 79,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 268,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37128,
    "c": 0.16216,
    "h": 299.5
  },
  "luminance": 0.0434
}

Semantic roles & 50–950 ramp

primary
#4F1E87
secondary
#84B948
accent
#E74199
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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