#4F2279#4F2279

#4F2279 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.141 H 303.8°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4F2279
RGBrgb(79, 34, 121)
HSLhsl(271, 56%, 30%)
HSVhsv(271, 72%, 47%)
CMYKcmyk(34.7%, 71.9%, 0%, 52.5%)
CIE-LABlab(24.28, 38.40, -41.35)
CIE-LCHlch(24.28, 56.43, 312.88°)
OKLaboklab(36.42% 0.0786 -0.1176)
OKLCHoklch(36.42% 0.141 303.8)
XYZxyz(7.2469, 4.1868, 18.5118)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2279 #4C7922
analogous
#232279 #4F2279 #792278
triadic
#4F2279 #794F22 #22794F
tetradic
#4F2279 #792322 #4C7922 #227879
square
#4F2279 #792322 #4C7922 #227879
split-complementary
#4F2279 #787922 #227923
monochromatic
#110719 #301549 #4F2279 #6E2FA9 #8D49CC

Accessibility & contrast

On white

11.43
#4F2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4F2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2279
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2279#FFFFFF#000000##FFFFFF
##4F22791.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003A77
Tritanopia (blue-blind)
#47364B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f2279;
/* rgb */ color: rgb(79, 34, 121);
/* oklch */ color: oklch(36.4% 0.141 303.8);
Tailwind
colors: {
  custom: {
    50: '#8461a0',
    500: '#4f2279',
    950: '#000000',
  },
}
SCSS
$custom: #4f2279;
$custom-light: #8461a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2279",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 271.034,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36419,
    "c": 0.14143,
    "h": 303.8
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#4F2279
secondary
#7AAC4B
accent
#DF4891
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4F2279

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

Preview Lab → · Contrast checker → · Palette generator →

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