#4F217E#4F217E

#4F217E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.148 H 302.1°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4F217E
RGBrgb(79, 33, 126)
HSLhsl(270, 58%, 31%)
HSVhsv(270, 74%, 49%)
CMYKcmyk(37.3%, 73.8%, 0%, 50.6%)
CIE-LABlab(24.50, 40.20, -44.16)
CIE-LCHlch(24.50, 59.72, 312.31°)
OKLaboklab(36.7% 0.0789 -0.1258)
OKLCHoklch(36.7% 0.148 302.1)
XYZxyz(7.5333, 4.2563, 20.1593)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F217E #507E21
analogous
#21217E #4F217E #7D217E
triadic
#4F217E #7E4F21 #217E4F
tetradic
#4F217E #7E2121 #507E21 #217E7D
square
#4F217E #7E2121 #507E21 #217E7D
split-complementary
#4F217E #7E7D21 #217E21
monochromatic
#12081D #31144E #4F217E #6D2EAE #8C4AD0

Accessibility & contrast

On white

11.34
#4F217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4F217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F217E
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F217E#FFFFFF#000000##FFFFFF
##4F217E1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#45374D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f217e;
/* rgb */ color: rgb(79, 33, 126);
/* oklch */ color: oklch(36.7% 0.148 302.1);
Tailwind
colors: {
  custom: {
    50: '#8561a4',
    500: '#4f217e',
    950: '#000000',
  },
}
SCSS
$custom: #4f217e;
$custom-light: #8561a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f217e",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 269.677,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36703,
    "c": 0.14849,
    "h": 302.1
  },
  "luminance": 0.04256
}

Semantic roles & 50–950 ramp

primary
#4F217E
secondary
#7EB14A
accent
#E24695
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F217E

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

Preview Lab → · Contrast checker → · Palette generator →

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