#4F2579#4F2579

#4F2579 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.137 H 303.2°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#4F2579
RGBrgb(79, 37, 121)
HSLhsl(270, 53%, 31%)
HSVhsv(270, 69%, 47%)
CMYKcmyk(34.7%, 69.4%, 0%, 52.5%)
CIE-LABlab(24.85, 36.83, -40.43)
CIE-LCHlch(24.85, 54.69, 312.33°)
OKLaboklab(36.83% 0.0751 -0.1149)
OKLCHoklch(36.83% 0.137 303.2)
XYZxyz(7.3364, 4.3659, 18.5416)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2579 #4F7925
analogous
#252579 #4F2579 #792579
triadic
#4F2579 #794F25 #25794F
tetradic
#4F2579 #792525 #4F7925 #257979
square
#4F2579 #792525 #4F7925 #257979
split-complementary
#4F2579 #797925 #257925
monochromatic
#12081B #30174A #4F2579 #6E33A8 #8C4FC9

Accessibility & contrast

On white

11.21
#4F2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4F2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2579
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2579#FFFFFF#000000##FFFFFF
##4F25791.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#033B77
Tritanopia (blue-blind)
#47384B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f2579;
/* rgb */ color: rgb(79, 37, 121);
/* oklch */ color: oklch(36.8% 0.137 303.2);
Tailwind
colors: {
  custom: {
    50: '#8463a0',
    500: '#4f2579',
    950: '#000000',
  },
}
SCSS
$custom: #4f2579;
$custom-light: #8463a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2579",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 270,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36825,
    "c": 0.13725,
    "h": 303.2
  },
  "luminance": 0.04366
}

Semantic roles & 50–950 ramp

primary
#4F2579
secondary
#7DAB4E
accent
#DD4B94
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #4F2579

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

Preview Lab → · Contrast checker → · Palette generator →

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