#4F217F#4F217F

#4F217F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.150 H 301.7°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#4F217F
RGBrgb(79, 33, 127)
HSLhsl(269, 59%, 31%)
HSVhsv(269, 74%, 50%)
CMYKcmyk(37.8%, 74%, 0%, 50.2%)
CIE-LABlab(24.58, 40.46, -44.66)
CIE-LCHlch(24.58, 60.26, 312.18°)
OKLaboklab(36.79% 0.0787 -0.1273)
OKLCHoklch(36.79% 0.15 301.7)
XYZxyz(7.5981, 4.2823, 20.5008)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F217F #517F21
analogous
#21227F #4F217F #7E217F
triadic
#4F217F #7F4F21 #217F4F
tetradic
#4F217F #7F2122 #517F21 #217F7E
square
#4F217F #7F2122 #517F21 #217F7E
split-complementary
#4F217F #7F7E21 #227F21
monochromatic
#13081E #31144E #4F217F #6D2EB0 #8C4AD0

Accessibility & contrast

On white

11.31
#4F217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F217F
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F217F#FFFFFF#000000##FFFFFF
##4F217F1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#45384E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f217f;
/* rgb */ color: rgb(79, 33, 127);
/* oklch */ color: oklch(36.8% 0.150 301.7);
Tailwind
colors: {
  custom: {
    50: '#8561a5',
    500: '#4f217f',
    950: '#000000',
  },
}
SCSS
$custom: #4f217f;
$custom-light: #8561a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f217f",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 269.362,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36787,
    "c": 0.14963,
    "h": 301.7
  },
  "luminance": 0.04282
}

Semantic roles & 50–950 ramp

primary
#4F217F
secondary
#7FB24A
accent
#E24696
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F217F

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

Preview Lab → · Contrast checker → · Palette generator →

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