#4F1256#4F1256

#4F1256 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.126 H 323.4°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#4F1256
RGBrgb(79, 18, 86)
HSLhsl(294, 65%, 20%)
HSVhsv(294, 79%, 34%)
CMYKcmyk(8.1%, 79.1%, 0%, 66.3%)
CIE-LABlab(19.09, 37.61, -26.84)
CIE-LCHlch(19.09, 46.20, 324.48°)
OKLaboklab(31.89% 0.1009 -0.0749)
OKLCHoklch(31.89% 0.126 323.4)
XYZxyz(5.1203, 2.7671, 9.0667)
Luminance0.0277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1256 #195612
analogous
#2D1256 #4F1256 #56123B
triadic
#4F1256 #564F12 #12564F
tetradic
#4F1256 #562D12 #195612 #123B56
square
#4F1256 #562D12 #195612 #123B56
split-complementary
#4F1256 #3B5612 #12562D
monochromatic
#170519 #210723 #4F1256 #7D1D89 #AC27BB

Accessibility & contrast

On white

13.52
#4F1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4F1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1256
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1256#FFFFFF#000000##FFFFFF
##4F12561.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#1E3154
Tritanopia (blue-blind)
#501E33
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4f1256;
/* rgb */ color: rgb(79, 18, 86);
/* oklch */ color: oklch(31.9% 0.126 323.4);
Tailwind
colors: {
  custom: {
    50: '#835786',
    500: '#4f1256',
    950: '#000000',
  },
}
SCSS
$custom: #4f1256;
$custom-light: #835786;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1256",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 293.824,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31892,
    "c": 0.12565,
    "h": 323.4
  },
  "luminance": 0.02767
}

Semantic roles & 50–950 ramp

primary
#4F1256
secondary
#3E8F35
accent
#E83F51
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4F1256

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

Preview Lab → · Contrast checker → · Palette generator →

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