#4F218C#4F218C

#4F218C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.164 H 297.4°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#4F218C
RGBrgb(79, 33, 140)
HSLhsl(266, 62%, 34%)
HSVhsv(266, 76%, 55%)
CMYKcmyk(43.6%, 76.4%, 0%, 45.1%)
CIE-LABlab(25.69, 43.89, -51.00)
CIE-LCHlch(25.69, 67.28, 310.72°)
OKLaboklab(37.92% 0.0757 -0.1459)
OKLCHoklch(37.92% 0.164 297.4)
XYZxyz(8.5007, 4.6433, 25.2542)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F218C #5E8C21
analogous
#21298C #4F218C #85218C
triadic
#4F218C #8C4F21 #218C4F
tetradic
#4F218C #8C2129 #5E8C21 #218C85
square
#4F218C #8C2129 #5E8C21 #218C85
split-complementary
#4F218C #8C8521 #298C21
monochromatic
#170A29 #33155A #4F218C #6B2DBE #8A51D6

Accessibility & contrast

On white

10.89
#4F218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F218C
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F218C#FFFFFF#000000##FFFFFF
##4F218C1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f218c;
/* rgb */ color: rgb(79, 33, 140);
/* oklch */ color: oklch(37.9% 0.164 297.4);
Tailwind
colors: {
  custom: {
    50: '#8761ae',
    500: '#4f218c',
    950: '#000000',
  },
}
SCSS
$custom: #4f218c;
$custom-light: #8761ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f218c",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 265.794,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37917,
    "c": 0.16439,
    "h": 297.4
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#4F218C
secondary
#8CB94F
accent
#E5439F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F218C

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

Preview Lab → · Contrast checker → · Palette generator →

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