#4F1259#4F1259

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

Color values

HEX#4F1259
RGBrgb(79, 18, 89)
HSLhsl(292, 66%, 21%)
HSVhsv(292, 80%, 35%)
CMYKcmyk(11.2%, 79.8%, 0%, 65.1%)
CIE-LABlab(19.29, 38.22, -28.52)
CIE-LCHlch(19.29, 47.69, 323.26°)
OKLaboklab(32.11% 0.1007 -0.0798)
OKLCHoklch(32.11% 0.128 321.6)
XYZxyz(5.2437, 2.8164, 9.7167)
Luminance0.0282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1259 #1C5912
analogous
#2B1259 #4F1259 #59123F
triadic
#4F1259 #594F12 #12594F
tetradic
#4F1259 #592B12 #1C5912 #123F59
square
#4F1259 #592B12 #1C5912 #123F59
split-complementary
#4F1259 #3F5912 #12592B
monochromatic
#170519 #220826 #4F1259 #7C1C8C #A927BF

Accessibility & contrast

On white

13.43
#4F1259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1259
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1259#FFFFFF#000000##FFFFFF
##4F12591.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5B
Deuteranopia (green-blind)
#1B3157
Tritanopia (blue-blind)
#502034
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4f1259;
/* rgb */ color: rgb(79, 18, 89);
/* oklch */ color: oklch(32.1% 0.128 321.6);
Tailwind
colors: {
  custom: {
    50: '#835788',
    500: '#4f1259',
    950: '#000000',
  },
}
SCSS
$custom: #4f1259;
$custom-light: #835788;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1259",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 291.549,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32106,
    "c": 0.12847,
    "h": 321.6
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#4F1259
secondary
#429235
accent
#E93F57
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4F1259

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

Preview Lab → · Contrast checker → · Palette generator →

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