#4F217D#4F217D

#4F217D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.147 H 302.4°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#4F217D
RGBrgb(79, 33, 125)
HSLhsl(270, 58%, 31%)
HSVhsv(270, 74%, 49%)
CMYKcmyk(36.8%, 73.6%, 0%, 51%)
CIE-LABlab(24.42, 39.94, -43.66)
CIE-LCHlch(24.42, 59.17, 312.45°)
OKLaboklab(36.62% 0.0791 -0.1243)
OKLCHoklch(36.62% 0.147 302.4)
XYZxyz(7.4691, 4.2306, 19.8212)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F217D #4F7D21
analogous
#21217D #4F217D #7D217D
triadic
#4F217D #7D4F21 #217D4F
tetradic
#4F217D #7D2121 #4F7D21 #217D7D
square
#4F217D #7D2121 #4F7D21 #217D7D
split-complementary
#4F217D #7D7D21 #217D21
monochromatic
#12071C #30144D #4F217D #6E2EAD #8C49CF

Accessibility & contrast

On white

11.37
#4F217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F217D
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F217D#FFFFFF#000000##FFFFFF
##4F217D1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#45374C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f217d;
/* rgb */ color: rgb(79, 33, 125);
/* oklch */ color: oklch(36.6% 0.147 302.4);
Tailwind
colors: {
  custom: {
    50: '#8561a3',
    500: '#4f217d',
    950: '#000000',
  },
}
SCSS
$custom: #4f217d;
$custom-light: #8561a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f217d",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 270,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3662,
    "c": 0.14735,
    "h": 302.4
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

primary
#4F217D
secondary
#7DB04A
accent
#E14694
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F217D

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

Preview Lab → · Contrast checker → · Palette generator →

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