#4F217C#4F217C

#4F217C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.146 H 302.8°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#4F217C
RGBrgb(79, 33, 124)
HSLhsl(270, 58%, 31%)
HSVhsv(270, 73%, 49%)
CMYKcmyk(36.3%, 73.4%, 0%, 51.4%)
CIE-LABlab(24.34, 39.68, -43.16)
CIE-LCHlch(24.34, 58.63, 312.60°)
OKLaboklab(36.54% 0.0792 -0.1229)
OKLCHoklch(36.54% 0.146 302.8)
XYZxyz(7.4055, 4.2052, 19.4864)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F217C #4E7C21
analogous
#21217C #4F217C #7C217B
triadic
#4F217C #7C4F21 #217C4F
tetradic
#4F217C #7C2121 #4E7C21 #217B7C
square
#4F217C #7C2121 #4E7C21 #217B7C
split-complementary
#4F217C #7B7C21 #217C21
monochromatic
#11071B #30144C #4F217C #6E2EAC #8C49CF

Accessibility & contrast

On white

11.41
#4F217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F217C
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F217C#FFFFFF#000000##FFFFFF
##4F217C1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#46374C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f217c;
/* rgb */ color: rgb(79, 33, 124);
/* oklch */ color: oklch(36.5% 0.146 302.8);
Tailwind
colors: {
  custom: {
    50: '#8560a3',
    500: '#4f217c',
    950: '#000000',
  },
}
SCSS
$custom: #4f217c;
$custom-light: #8560a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f217c",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 270.33,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36537,
    "c": 0.14621,
    "h": 302.8
  },
  "luminance": 0.04205
}

Semantic roles & 50–950 ramp

primary
#4F217C
secondary
#7CAF4A
accent
#E14793
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F217C

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

Preview Lab → · Contrast checker → · Palette generator →

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