#4F218A#4F218A

#4F218A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.162 H 298.0°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4F218A
RGBrgb(79, 33, 138)
HSLhsl(266, 61%, 34%)
HSVhsv(266, 76%, 54%)
CMYKcmyk(42.8%, 76.1%, 0%, 45.9%)
CIE-LABlab(25.52, 43.36, -50.04)
CIE-LCHlch(25.52, 66.21, 310.91°)
OKLaboklab(37.74% 0.0762 -0.1431)
OKLCHoklch(37.74% 0.162 298)
XYZxyz(8.3546, 4.5848, 24.4846)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F218A #5C8A21
analogous
#21278A #4F218A #83218A
triadic
#4F218A #8A4F21 #218A4F
tetradic
#4F218A #8A2127 #5C8A21 #218A83
square
#4F218A #8A2127 #5C8A21 #218A83
split-complementary
#4F218A #8A8321 #278A21
monochromatic
#160927 #331559 #4F218A #6B2DBB #8A50D5

Accessibility & contrast

On white

10.95
#4F218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4F218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F218A
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F218A#FFFFFF#000000##FFFFFF
##4F218A1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#403C54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f218a;
/* rgb */ color: rgb(79, 33, 138);
/* oklch */ color: oklch(37.7% 0.162 298.0);
Tailwind
colors: {
  custom: {
    50: '#8661ad',
    500: '#4f218a',
    950: '#000000',
  },
}
SCSS
$custom: #4f218a;
$custom-light: #8661ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f218a",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 266.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37739,
    "c": 0.16213,
    "h": 298
  },
  "luminance": 0.04585
}

Semantic roles & 50–950 ramp

primary
#4F218A
secondary
#8AB94E
accent
#E5439E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F218A

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

Preview Lab → · Contrast checker → · Palette generator →

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