#4F1281#4F1281

#4F1281 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.168 H 303.0°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#4F1281
RGBrgb(79, 18, 129)
HSLhsl(273, 76%, 29%)
HSVhsv(273, 86%, 51%)
CMYKcmyk(38.8%, 86%, 0%, 49.4%)
CIE-LABlab(22.58, 47.22, -49.19)
CIE-LCHlch(22.58, 68.18, 313.83°)
OKLaboklab(35.44% 0.0913 -0.1405)
OKLCHoklch(35.44% 0.168 303)
XYZxyz(7.4023, 3.6798, 21.0849)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1281 #448112
analogous
#181281 #4F1281 #81127C
triadic
#4F1281 #814F12 #12814F
tetradic
#4F1281 #811812 #448112 #127C81
square
#4F1281 #811812 #448112 #127C81
split-complementary
#4F1281 #7C8112 #128118
monochromatic
#10041B #2E0B4B #4F1281 #7019B7 #902CE2

Accessibility & contrast

On white

12.10
#4F1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4F1281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1281
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1281#FFFFFF#000000##FFFFFF
##4F12811.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#44324B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f1281;
/* rgb */ color: rgb(79, 18, 129);
/* oklch */ color: oklch(35.4% 0.168 303.0);
Tailwind
colors: {
  custom: {
    50: '#865aa6',
    500: '#4f1281',
    950: '#000000',
  },
}
SCSS
$custom: #4f1281;
$custom-light: #865aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1281",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 272.973,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35441,
    "c": 0.16755,
    "h": 303
  },
  "luminance": 0.0368
}

Semantic roles & 50–950 ramp

primary
#4F1281
secondary
#71B738
accent
#F2368B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1281

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

Preview Lab → · Contrast checker → · Palette generator →

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