#4F1781#4F1781

#4F1781 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.163 H 302.5°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#4F1781
RGBrgb(79, 23, 129)
HSLhsl(272, 70%, 30%)
HSVhsv(272, 82%, 51%)
CMYKcmyk(38.8%, 82.2%, 0%, 49.4%)
CIE-LABlab(23.20, 45.41, -48.17)
CIE-LCHlch(23.20, 66.20, 313.31°)
OKLaboklab(35.87% 0.0876 -0.1375)
OKLCHoklch(35.87% 0.163 302.5)
XYZxyz(7.4923, 3.8600, 21.1150)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1781 #498117
analogous
#1A1781 #4F1781 #81177E
triadic
#4F1781 #814F17 #17814F
tetradic
#4F1781 #811A17 #498117 #177E81
square
#4F1781 #811A17 #498117 #177E81
split-complementary
#4F1781 #7E8117 #17811A
monochromatic
#10051A #2F0E4D #4F1781 #6F20B5 #8E37DB

Accessibility & contrast

On white

11.85
#4F1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4F1781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1781
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1781#FFFFFF#000000##FFFFFF
##4F17811.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#44344C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f1781;
/* rgb */ color: rgb(79, 23, 129);
/* oklch */ color: oklch(35.9% 0.163 302.5);
Tailwind
colors: {
  custom: {
    50: '#865ca6',
    500: '#4f1781',
    950: '#000000',
  },
}
SCSS
$custom: #4f1781;
$custom-light: #865ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1781",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 271.698,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35871,
    "c": 0.16305,
    "h": 302.5
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#4F1781
secondary
#77B53E
accent
#ED3B8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1781

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

Preview Lab → · Contrast checker → · Palette generator →

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