#4F2886#4F2886

#4F2886 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.149 H 298.0°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#4F2886
RGBrgb(79, 40, 134)
HSLhsl(265, 54%, 34%)
HSVhsv(265, 70%, 53%)
CMYKcmyk(41%, 70.1%, 0%, 47.5%)
CIE-LABlab(26.45, 38.72, -46.02)
CIE-LCHlch(26.45, 60.14, 310.07°)
OKLaboklab(38.3% 0.0698 -0.1313)
OKLCHoklch(38.3% 0.149 298)
XYZxyz(8.2852, 4.9010, 23.0591)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2886 #5F8628
analogous
#283086 #4F2886 #7E2886
triadic
#4F2886 #864F28 #28864F
tetradic
#4F2886 #862830 #5F8628 #28867E
square
#4F2886 #862830 #5F8628 #28867E
split-complementary
#4F2886 #867E28 #308628
monochromatic
#170C28 #331A57 #4F2886 #6B36B5 #8A5BCE

Accessibility & contrast

On white

10.60
#4F2886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4F2886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2886
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2886#FFFFFF#000000##FFFFFF
##4F28861.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#423E53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f2886;
/* rgb */ color: rgb(79, 40, 134);
/* oklch */ color: oklch(38.3% 0.149 298.0);
Tailwind
colors: {
  custom: {
    50: '#8565aa',
    500: '#4f2886',
    950: '#000000',
  },
}
SCSS
$custom: #4f2886;
$custom-light: #8565aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2886",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 264.894,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38297,
    "c": 0.14874,
    "h": 298
  },
  "luminance": 0.04901
}

Semantic roles & 50–950 ramp

primary
#4F2886
secondary
#8DB357
accent
#DD4AA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2886

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

Preview Lab → · Contrast checker → · Palette generator →

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