#4F2179#4F2179

#4F2179 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.143 H 304.0°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#4F2179
RGBrgb(79, 33, 121)
HSLhsl(271, 57%, 30%)
HSVhsv(271, 73%, 47%)
CMYKcmyk(34.7%, 72.7%, 0%, 52.5%)
CIE-LABlab(24.10, 38.91, -41.64)
CIE-LCHlch(24.10, 56.99, 313.05°)
OKLaboklab(36.29% 0.0798 -0.1184)
OKLCHoklch(36.29% 0.143 304)
XYZxyz(7.2187, 4.1305, 18.5024)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2179 #4B7921
analogous
#232179 #4F2179 #792177
triadic
#4F2179 #794F21 #21794F
tetradic
#4F2179 #792321 #4B7921 #217779
square
#4F2179 #792321 #4B7921 #217779
split-complementary
#4F2179 #777921 #217923
monochromatic
#100719 #301449 #4F2179 #6E2EA9 #8D47CD

Accessibility & contrast

On white

11.50
#4F2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4F2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2179
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2179#FFFFFF#000000##FFFFFF
##4F21791.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003977
Tritanopia (blue-blind)
#47364A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f2179;
/* rgb */ color: rgb(79, 33, 121);
/* oklch */ color: oklch(36.3% 0.143 304.0);
Tailwind
colors: {
  custom: {
    50: '#8460a0',
    500: '#4f2179',
    950: '#000000',
  },
}
SCSS
$custom: #4f2179;
$custom-light: #8460a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2179",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 271.364,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3629,
    "c": 0.14277,
    "h": 304
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#4F2179
secondary
#79AC4A
accent
#E04790
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4F2179

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

Preview Lab → · Contrast checker → · Palette generator →

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