#4F1157#4F1157

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

Color values

HEX#4F1157
RGBrgb(79, 17, 87)
HSLhsl(293, 67%, 20%)
HSVhsv(293, 80%, 34%)
CMYKcmyk(9.2%, 80.5%, 0%, 65.9%)
CIE-LABlab(19.02, 38.19, -27.62)
CIE-LCHlch(19.02, 47.13, 324.13°)
OKLaboklab(31.87% 0.1019 -0.0772)
OKLCHoklch(31.87% 0.128 322.9)
XYZxyz(5.1450, 2.7516, 9.2751)
Luminance0.0275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1157 #195711
analogous
#2C1157 #4F1157 #57113C
triadic
#4F1157 #574F11 #11574F
tetradic
#4F1157 #572C11 #195711 #113C57
square
#4F1157 #572C11 #195711 #113C57
split-complementary
#4F1157 #3C5711 #11572C
monochromatic
#17051A #210724 #4F1157 #7D1B8A #AC25BD

Accessibility & contrast

On white

13.55
#4F1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1157
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1157#FFFFFF#000000##FFFFFF
##4F11571.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1157;
/* rgb */ color: rgb(79, 17, 87);
/* oklch */ color: oklch(31.9% 0.128 322.9);
Tailwind
colors: {
  custom: {
    50: '#835787',
    500: '#4f1157',
    950: '#000000',
  },
}
SCSS
$custom: #4f1157;
$custom-light: #835787;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1157",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 293.143,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31867,
    "c": 0.12779,
    "h": 322.9
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#4F1157
secondary
#3E9034
accent
#EA3E51
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4F1157

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

Preview Lab → · Contrast checker → · Palette generator →

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