#4F1786#4F1786

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

Color values

HEX#4F1786
RGBrgb(79, 23, 134)
HSLhsl(270, 71%, 31%)
HSVhsv(270, 83%, 53%)
CMYKcmyk(41%, 82.8%, 0%, 47.5%)
CIE-LABlab(23.66, 46.64, -50.58)
CIE-LCHlch(23.66, 68.80, 312.68°)
OKLaboklab(36.33% 0.086 -0.1446)
OKLCHoklch(36.33% 0.168 300.7)
XYZxyz(7.8329, 3.9962, 22.9083)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1786 #4E8617
analogous
#171786 #4F1786 #861785
triadic
#4F1786 #864F17 #17864F
tetradic
#4F1786 #861717 #4E8617 #178586
square
#4F1786 #861717 #4E8617 #178586
split-complementary
#4F1786 #858617 #178617
monochromatic
#11051E #300E52 #4F1786 #6E20BA #8C3ADD

Accessibility & contrast

On white

11.67
#4F1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1786
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1786#FFFFFF#000000##FFFFFF
##4F17861.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#42364F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1786;
/* rgb */ color: rgb(79, 23, 134);
/* oklch */ color: oklch(36.3% 0.168 300.7);
Tailwind
colors: {
  custom: {
    50: '#865caa',
    500: '#4f1786',
    950: '#000000',
  },
}
SCSS
$custom: #4f1786;
$custom-light: #865caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1786",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 270.27,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36328,
    "c": 0.16823,
    "h": 300.7
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#4F1786
secondary
#7CBA3F
accent
#ED3A93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F1786

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

Preview Lab → · Contrast checker → · Palette generator →

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