#4F219F#4F219F

#4F219F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.186 H 292.3°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4F219F
RGBrgb(79, 33, 159)
HSLhsl(262, 66%, 38%)
HSVhsv(262, 79%, 62%)
CMYKcmyk(50.3%, 79.2%, 0%, 37.6%)
CIE-LABlab(27.44, 48.98, -59.82)
CIE-LCHlch(27.44, 77.31, 309.31°)
OKLaboklab(39.68% 0.0703 -0.1718)
OKLCHoklch(39.68% 0.186 292.3)
XYZxyz(10.0246, 5.2528, 33.2799)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F219F #719F21
analogous
#21329F #4F219F #8E219F
triadic
#4F219F #9F4F21 #219F4F
tetradic
#4F219F #9F2132 #719F21 #219F8E
square
#4F219F #9F2132 #719F21 #219F8E
split-complementary
#4F219F #9F8E21 #329F21
monochromatic
#1D0C3A #36166C #4F219F #682CD2 #8C5DDD

Accessibility & contrast

On white

10.24
#4F219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4F219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F219F
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F219F#FFFFFF#000000##FFFFFF
##4F219F1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#354560
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f219f;
/* rgb */ color: rgb(79, 33, 159);
/* oklch */ color: oklch(39.7% 0.186 292.3);
Tailwind
colors: {
  custom: {
    50: '#8962bc',
    500: '#4f219f',
    950: '#000000',
  },
}
SCSS
$custom: #4f219f;
$custom-light: #8962bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f219f",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 261.905,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39678,
    "c": 0.18562,
    "h": 292.3
  },
  "luminance": 0.05253
}

Semantic roles & 50–950 ramp

primary
#4F219F
secondary
#9CC25A
accent
#E93FAB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4F219F

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

Preview Lab → · Contrast checker → · Palette generator →

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