#4F2879#4F2879

#4F2879 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.133 H 302.5°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#4F2879
RGBrgb(79, 40, 121)
HSLhsl(269, 50%, 32%)
HSVhsv(269, 67%, 47%)
CMYKcmyk(34.7%, 66.9%, 0%, 52.5%)
CIE-LABlab(25.44, 35.19, -39.47)
CIE-LCHlch(25.44, 52.88, 311.72°)
OKLaboklab(37.26% 0.0714 -0.1121)
OKLCHoklch(37.26% 0.133 302.5)
XYZxyz(7.4336, 4.5603, 18.5741)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2879 #527928
analogous
#282979 #4F2879 #782879
triadic
#4F2879 #794F28 #28794F
tetradic
#4F2879 #792829 #527928 #287978
square
#4F2879 #792829 #527928 #287978
split-complementary
#4F2879 #797828 #297928
monochromatic
#130A1D #31194B #4F2879 #6D37A7 #8C55C7

Accessibility & contrast

On white

10.98
#4F2879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4F2879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2879
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2879#FFFFFF#000000##FFFFFF
##4F28791.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#0B3C77
Tritanopia (blue-blind)
#473A4C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f2879;
/* rgb */ color: rgb(79, 40, 121);
/* oklch */ color: oklch(37.3% 0.133 302.5);
Tailwind
colors: {
  custom: {
    50: '#8464a0',
    500: '#4f2879',
    950: '#000000',
  },
}
SCSS
$custom: #4f2879;
$custom-light: #8464a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2879",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 268.889,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37255,
    "c": 0.1329,
    "h": 302.5
  },
  "luminance": 0.0456
}

Semantic roles & 50–950 ramp

primary
#4F2879
secondary
#80AB52
accent
#DA4E96
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4F2879

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

Preview Lab → · Contrast checker → · Palette generator →

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