#4F218F#4F218F

#4F218F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.168 H 296.5°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4F218F
RGBrgb(79, 33, 143)
HSLhsl(265, 63%, 35%)
HSVhsv(265, 77%, 56%)
CMYKcmyk(44.8%, 76.9%, 0%, 43.9%)
CIE-LABlab(25.96, 44.69, -52.42)
CIE-LCHlch(25.96, 68.89, 310.45°)
OKLaboklab(38.19% 0.075 -0.1501)
OKLCHoklch(38.19% 0.168 296.5)
XYZxyz(8.7249, 4.7330, 26.4351)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F218F #618F21
analogous
#212A8F #4F218F #86218F
triadic
#4F218F #8F4F21 #218F4F
tetradic
#4F218F #8F212A #618F21 #218F86
square
#4F218F #8F212A #618F21 #218F86
split-complementary
#4F218F #8F8621 #2A8F21
monochromatic
#180A2C #34165D #4F218F #6A2CC1 #8A53D7

Accessibility & contrast

On white

10.79
#4F218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4F218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F218F
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F218F#FFFFFF#000000##FFFFFF
##4F218F1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#3E3E57
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f218f;
/* rgb */ color: rgb(79, 33, 143);
/* oklch */ color: oklch(38.2% 0.168 296.5);
Tailwind
colors: {
  custom: {
    50: '#8761b1',
    500: '#4f218f',
    950: '#000000',
  },
}
SCSS
$custom: #4f218f;
$custom-light: #8761b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f218f",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 265.091,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38187,
    "c": 0.16777,
    "h": 296.5
  },
  "luminance": 0.04733
}

Semantic roles & 50–950 ramp

primary
#4F218F
secondary
#8FBB51
accent
#E642A1
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F218F

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

Preview Lab → · Contrast checker → · Palette generator →

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