#4F1886#4F1886

#4F1886 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.167 H 300.6°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4F1886
RGBrgb(79, 24, 134)
HSLhsl(270, 70%, 31%)
HSVhsv(270, 82%, 53%)
CMYKcmyk(41%, 82.1%, 0%, 47.5%)
CIE-LABlab(23.79, 46.25, -50.36)
CIE-LCHlch(23.79, 68.38, 312.57°)
OKLaboklab(36.42% 0.0852 -0.144)
OKLCHoklch(36.42% 0.167 300.6)
XYZxyz(7.8531, 4.0367, 22.9151)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1886 #4F8618
analogous
#181886 #4F1886 #861886
triadic
#4F1886 #864F18 #18864F
tetradic
#4F1886 #861818 #4F8618 #188686
square
#4F1886 #861818 #4F8618 #188686
split-complementary
#4F1886 #868618 #188618
monochromatic
#12051E #300F52 #4F1886 #6E21BA #8C3CDC

Accessibility & contrast

On white

11.62
#4F1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4F1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1886
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1886#FFFFFF#000000##FFFFFF
##4F18861.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1886;
/* rgb */ color: rgb(79, 24, 134);
/* oklch */ color: oklch(36.4% 0.167 300.6);
Tailwind
colors: {
  custom: {
    50: '#865daa',
    500: '#4f1886',
    950: '#000000',
  },
}
SCSS
$custom: #4f1886;
$custom-light: #865daa;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1886",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 270,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36421,
    "c": 0.16729,
    "h": 300.6
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#4F1886
secondary
#7DBA40
accent
#EC3B94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F1886

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

Preview Lab → · Contrast checker → · Palette generator →

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