#4F1251#4F1251

#4F1251 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.5% C 0.121 H 326.6°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#4F1251
RGBrgb(79, 18, 81)
HSLhsl(298, 64%, 19%)
HSVhsv(298, 78%, 32%)
CMYKcmyk(2.5%, 77.8%, 0%, 68.2%)
CIE-LABlab(18.75, 36.62, -23.99)
CIE-LCHlch(18.75, 43.78, 326.76°)
OKLaboklab(31.55% 0.1011 -0.0666)
OKLCHoklch(31.55% 0.121 326.6)
XYZxyz(4.9259, 2.6893, 8.0426)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1251 #145112
analogous
#301251 #4F1251 #511234
triadic
#4F1251 #514F12 #12514F
tetradic
#4F1251 #513012 #145112 #123451
square
#4F1251 #513012 #145112 #123451
split-complementary
#4F1251 #345112 #125130
monochromatic
#180619 #1E071F #4F1251 #801D83 #B128B5

Accessibility & contrast

On white

13.66
#4F1251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4F1251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1251
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1251#FFFFFF#000000##FFFFFF
##4F12511.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052953
Deuteranopia (green-blind)
#21304F
Tritanopia (blue-blind)
#511C30
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4f1251;
/* rgb */ color: rgb(79, 18, 81);
/* oklch */ color: oklch(31.5% 0.121 326.6);
Tailwind
colors: {
  custom: {
    50: '#835782',
    500: '#4f1251',
    950: '#000000',
  },
}
SCSS
$custom: #4f1251;
$custom-light: #835782;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1251",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 298.095,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31548,
    "c": 0.12103,
    "h": 326.6
  },
  "luminance": 0.02689
}

Semantic roles & 50–950 ramp

primary
#4F1251
secondary
#388A35
accent
#E74146
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4F1251

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

Preview Lab → · Contrast checker → · Palette generator →

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