#4F218E#4F218E

#4F218E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.167 H 296.8°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4F218E
RGBrgb(79, 33, 142)
HSLhsl(265, 62%, 34%)
HSVhsv(265, 77%, 56%)
CMYKcmyk(44.4%, 76.8%, 0%, 44.3%)
CIE-LABlab(25.87, 44.42, -51.95)
CIE-LCHlch(25.87, 68.35, 310.53°)
OKLaboklab(38.1% 0.0752 -0.1487)
OKLCHoklch(38.1% 0.167 296.8)
XYZxyz(8.6495, 4.7028, 26.0380)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F218E #608E21
analogous
#212A8E #4F218E #86218E
triadic
#4F218E #8E4F21 #218E4F
tetradic
#4F218E #8E212A #608E21 #218E86
square
#4F218E #8E212A #608E21 #218E86
split-complementary
#4F218E #8E8621 #2A8E21
monochromatic
#180A2B #33155C #4F218E #6B2DC0 #8A52D7

Accessibility & contrast

On white

10.82
#4F218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4F218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F218E
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F218E#FFFFFF#000000##FFFFFF
##4F218E1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#3E3E56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f218e;
/* rgb */ color: rgb(79, 33, 142);
/* oklch */ color: oklch(38.1% 0.167 296.8);
Tailwind
colors: {
  custom: {
    50: '#8761b0',
    500: '#4f218e',
    950: '#000000',
  },
}
SCSS
$custom: #4f218e;
$custom-light: #8761b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f218e",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 265.321,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38096,
    "c": 0.16665,
    "h": 296.8
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#4F218E
secondary
#8EBA50
accent
#E542A1
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F218E

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

Preview Lab → · Contrast checker → · Palette generator →

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