#4F217B#4F217B

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

Color values

HEX#4F217B
RGBrgb(79, 33, 123)
HSLhsl(271, 58%, 31%)
HSVhsv(271, 73%, 48%)
CMYKcmyk(35.8%, 73.2%, 0%, 51.8%)
CIE-LABlab(24.26, 39.42, -42.66)
CIE-LCHlch(24.26, 58.08, 312.75°)
OKLaboklab(36.45% 0.0794 -0.1214)
OKLCHoklch(36.45% 0.145 303.2)
XYZxyz(7.3426, 4.1800, 19.1550)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F217B #4D7B21
analogous
#22217B #4F217B #7B217A
triadic
#4F217B #7B4F21 #217B4F
tetradic
#4F217B #7B2221 #4D7B21 #217A7B
square
#4F217B #7B2221 #4D7B21 #217A7B
split-complementary
#4F217B #7A7B21 #217B22
monochromatic
#11071A #30144B #4F217B #6E2EAB #8D48CE

Accessibility & contrast

On white

11.44
#4F217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F217B
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F217B#FFFFFF#000000##FFFFFF
##4F217B1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#46364B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f217b;
/* rgb */ color: rgb(79, 33, 123);
/* oklch */ color: oklch(36.5% 0.145 303.2);
Tailwind
colors: {
  custom: {
    50: '#8560a2',
    500: '#4f217b',
    950: '#000000',
  },
}
SCSS
$custom: #4f217b;
$custom-light: #8560a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f217b",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 270.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36454,
    "c": 0.14507,
    "h": 303.2
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#4F217B
secondary
#7BAE4A
accent
#E14792
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F217B

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

Preview Lab → · Contrast checker → · Palette generator →

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