#4F1986#4F1986

#4F1986 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.166 H 300.5°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4F1986
RGBrgb(79, 25, 134)
HSLhsl(270, 69%, 31%)
HSVhsv(270, 81%, 53%)
CMYKcmyk(41%, 81.3%, 0%, 47.5%)
CIE-LABlab(23.93, 45.86, -50.13)
CIE-LCHlch(23.93, 67.94, 312.45°)
OKLaboklab(36.52% 0.0844 -0.1433)
OKLCHoklch(36.52% 0.166 300.5)
XYZxyz(7.8741, 4.0787, 22.9221)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1986 #508619
analogous
#191986 #4F1986 #851986
triadic
#4F1986 #864F19 #19864F
tetradic
#4F1986 #861919 #508619 #198685
square
#4F1986 #861919 #508619 #198685
split-complementary
#4F1986 #868519 #198619
monochromatic
#12061F #310F52 #4F1986 #6D23BA #8C3EDB

Accessibility & contrast

On white

11.57
#4F1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4F1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1986
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1986#FFFFFF#000000##FFFFFF
##4F19861.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#423750
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f1986;
/* rgb */ color: rgb(79, 25, 134);
/* oklch */ color: oklch(36.5% 0.166 300.5);
Tailwind
colors: {
  custom: {
    50: '#865daa',
    500: '#4f1986',
    950: '#000000',
  },
}
SCSS
$custom: #4f1986;
$custom-light: #865daa;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1986",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 269.725,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36516,
    "c": 0.16632,
    "h": 300.5
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#4F1986
secondary
#7EBA41
accent
#EB3C95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1986

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

Preview Lab → · Contrast checker → · Palette generator →

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