#4F1881#4F1881

#4F1881 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.162 H 302.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#4F1881
RGBrgb(79, 24, 129)
HSLhsl(271, 69%, 30%)
HSVhsv(271, 81%, 51%)
CMYKcmyk(38.8%, 81.4%, 0%, 49.4%)
CIE-LABlab(23.34, 45.01, -47.95)
CIE-LCHlch(23.34, 65.77, 313.19°)
OKLaboklab(35.97% 0.0867 -0.1369)
OKLCHoklch(35.97% 0.162 302.4)
XYZxyz(7.5126, 3.9005, 21.1217)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1881 #4A8118
analogous
#1B1881 #4F1881 #81187E
triadic
#4F1881 #814F18 #18814F
tetradic
#4F1881 #811B18 #4A8118 #187E81
square
#4F1881 #811B18 #4A8118 #187E81
split-complementary
#4F1881 #7E8118 #18811B
monochromatic
#10051A #2F0E4D #4F1881 #6F22B5 #8E39DA

Accessibility & contrast

On white

11.80
#4F1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4F1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1881
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1881#FFFFFF#000000##FFFFFF
##4F18811.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#44344D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1881;
/* rgb */ color: rgb(79, 24, 129);
/* oklch */ color: oklch(36.0% 0.162 302.4);
Tailwind
colors: {
  custom: {
    50: '#865ca6',
    500: '#4f1881',
    950: '#000000',
  },
}
SCSS
$custom: #4f1881;
$custom-light: #865ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1881",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 271.429,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.35966,
    "c": 0.16205,
    "h": 302.4
  },
  "luminance": 0.03901
}

Semantic roles & 50–950 ramp

primary
#4F1881
secondary
#78B540
accent
#EB3C90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1881

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

Preview Lab → · Contrast checker → · Palette generator →

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