#4F218D#4F218D

#4F218D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.166 H 297.1°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#4F218D
RGBrgb(79, 33, 141)
HSLhsl(266, 62%, 34%)
HSVhsv(266, 77%, 55%)
CMYKcmyk(44%, 76.6%, 0%, 44.7%)
CIE-LABlab(25.78, 44.16, -51.47)
CIE-LCHlch(25.78, 67.82, 310.62°)
OKLaboklab(38.01% 0.0755 -0.1473)
OKLCHoklch(38.01% 0.166 297.1)
XYZxyz(8.5748, 4.6729, 25.6443)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F218D #5F8D21
analogous
#21298D #4F218D #85218D
triadic
#4F218D #8D4F21 #218D4F
tetradic
#4F218D #8D2129 #5F8D21 #218D85
square
#4F218D #8D2129 #5F8D21 #218D85
split-complementary
#4F218D #8D8521 #298D21
monochromatic
#170A2A #33155B #4F218D #6B2DBF #8A52D6

Accessibility & contrast

On white

10.85
#4F218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4F218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F218D
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F218D#FFFFFF#000000##FFFFFF
##4F218D1.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#3F3D55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f218d;
/* rgb */ color: rgb(79, 33, 141);
/* oklch */ color: oklch(38.0% 0.166 297.1);
Tailwind
colors: {
  custom: {
    50: '#8761af',
    500: '#4f218d',
    950: '#000000',
  },
}
SCSS
$custom: #4f218d;
$custom-light: #8761af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f218d",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 265.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38007,
    "c": 0.16552,
    "h": 297.1
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#4F218D
secondary
#8DBA50
accent
#E543A0
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F218D

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

Preview Lab → · Contrast checker → · Palette generator →

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