#4F1280#4F1280

#4F1280 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.167 H 303.4°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#4F1280
RGBrgb(79, 18, 128)
HSLhsl(273, 75%, 29%)
HSVhsv(273, 86%, 50%)
CMYKcmyk(38.3%, 85.9%, 0%, 49.8%)
CIE-LABlab(22.49, 46.98, -48.70)
CIE-LCHlch(22.49, 67.67, 313.97°)
OKLaboklab(35.35% 0.0917 -0.1391)
OKLCHoklch(35.35% 0.167 303.4)
XYZxyz(7.3361, 3.6534, 20.7366)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1280 #438012
analogous
#181280 #4F1280 #80127A
triadic
#4F1280 #804F12 #12804F
tetradic
#4F1280 #801812 #438012 #127A80
square
#4F1280 #801812 #438012 #127A80
split-complementary
#4F1280 #7A8012 #128018
monochromatic
#11041B #2E0A4A #4F1280 #701AB6 #902BE1

Accessibility & contrast

On white

12.13
#4F1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F1280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1280
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1280#FFFFFF#000000##FFFFFF
##4F12801.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#45324B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f1280;
/* rgb */ color: rgb(79, 18, 128);
/* oklch */ color: oklch(35.3% 0.167 303.4);
Tailwind
colors: {
  custom: {
    50: '#865aa6',
    500: '#4f1280',
    950: '#000000',
  },
}
SCSS
$custom: #4f1280;
$custom-light: #865aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1280",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 273.273,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35348,
    "c": 0.16656,
    "h": 303.4
  },
  "luminance": 0.03653
}

Semantic roles & 50–950 ramp

primary
#4F1280
secondary
#70B638
accent
#F2368A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1280

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

Preview Lab → · Contrast checker → · Palette generator →

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