#4F1257#4F1257

#4F1257 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.127 H 322.8°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#4F1257
RGBrgb(79, 18, 87)
HSLhsl(293, 66%, 21%)
HSVhsv(293, 79%, 34%)
CMYKcmyk(9.2%, 79.3%, 0%, 65.9%)
CIE-LABlab(19.15, 37.81, -27.41)
CIE-LCHlch(19.15, 46.70, 324.06°)
OKLaboklab(31.96% 0.1008 -0.0765)
OKLCHoklch(31.96% 0.127 322.8)
XYZxyz(5.1609, 2.7833, 9.2804)
Luminance0.0278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1257 #1A5712
analogous
#2C1257 #4F1257 #57123C
triadic
#4F1257 #574F12 #12574F
tetradic
#4F1257 #572C12 #1A5712 #123C57
square
#4F1257 #572C12 #1A5712 #123C57
split-complementary
#4F1257 #3C5712 #12572C
monochromatic
#170519 #210824 #4F1257 #7D1C8A #AB27BC

Accessibility & contrast

On white

13.49
#4F1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4F1257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1257
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1257#FFFFFF#000000##FFFFFF
##4F12571.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1257;
/* rgb */ color: rgb(79, 18, 87);
/* oklch */ color: oklch(32.0% 0.127 322.8);
Tailwind
colors: {
  custom: {
    50: '#835787',
    500: '#4f1257',
    950: '#000000',
  },
}
SCSS
$custom: #4f1257;
$custom-light: #835787;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1257",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 293.043,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31963,
    "c": 0.12658,
    "h": 322.8
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#4F1257
secondary
#409035
accent
#E93F53
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4F1257

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

Preview Lab → · Contrast checker → · Palette generator →

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