#4F1156#4F1156

#4F1156 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.127 H 323.5°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#4F1156
RGBrgb(79, 17, 86)
HSLhsl(294, 67%, 20%)
HSVhsv(294, 80%, 34%)
CMYKcmyk(8.1%, 80.2%, 0%, 66.3%)
CIE-LABlab(18.95, 37.99, -27.06)
CIE-LCHlch(18.95, 46.64, 324.54°)
OKLaboklab(31.8% 0.1019 -0.0755)
OKLCHoklch(31.8% 0.127 323.5)
XYZxyz(5.1045, 2.7354, 9.0614)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1156 #185611
analogous
#2C1156 #4F1156 #56113A
triadic
#4F1156 #564F11 #11564F
tetradic
#4F1156 #562C11 #185611 #113A56
square
#4F1156 #562C11 #185611 #113A56
split-complementary
#4F1156 #3A5611 #11562C
monochromatic
#17051A #200723 #4F1156 #7E1B89 #AD25BC

Accessibility & contrast

On white

13.57
#4F1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1156
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1156#FFFFFF#000000##FFFFFF
##4F11561.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#1D3054
Tritanopia (blue-blind)
#501E33
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4f1156;
/* rgb */ color: rgb(79, 17, 86);
/* oklch */ color: oklch(31.8% 0.127 323.5);
Tailwind
colors: {
  custom: {
    50: '#835786',
    500: '#4f1156',
    950: '#000000',
  },
}
SCSS
$custom: #4f1156;
$custom-light: #835786;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1156",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 293.913,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31796,
    "c": 0.12687,
    "h": 323.5
  },
  "luminance": 0.02735
}

Semantic roles & 50–950 ramp

primary
#4F1156
secondary
#3D8F34
accent
#EA3E4F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4F1156

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

Preview Lab → · Contrast checker → · Palette generator →

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