#4F2787#4F2787

#4F2787 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.151 H 297.9°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#4F2787
RGBrgb(79, 39, 135)
HSLhsl(265, 55%, 34%)
HSVhsv(265, 71%, 53%)
CMYKcmyk(41.5%, 71.1%, 0%, 47.1%)
CIE-LABlab(26.34, 39.53, -46.83)
CIE-LCHlch(26.34, 61.28, 310.17°)
OKLaboklab(38.24% 0.0708 -0.1337)
OKLCHoklch(38.24% 0.151 297.9)
XYZxyz(8.3220, 4.8624, 23.4171)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2787 #5F8727
analogous
#272F87 #4F2787 #7F2787
triadic
#4F2787 #874F27 #27874F
tetradic
#4F2787 #87272F #5F8727 #27877F
square
#4F2787 #87272F #5F8727 #27877F
split-complementary
#4F2787 #877F27 #2F8727
monochromatic
#170C28 #331958 #4F2787 #6B35B6 #8A59CF

Accessibility & contrast

On white

10.65
#4F2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4F2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2787
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2787#FFFFFF#000000##FFFFFF
##4F27871.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#413E54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f2787;
/* rgb */ color: rgb(79, 39, 135);
/* oklch */ color: oklch(38.2% 0.151 297.9);
Tailwind
colors: {
  custom: {
    50: '#8564ab',
    500: '#4f2787',
    950: '#000000',
  },
}
SCSS
$custom: #4f2787;
$custom-light: #8564ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2787",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 265,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38243,
    "c": 0.15127,
    "h": 297.9
  },
  "luminance": 0.04863
}

Semantic roles & 50–950 ramp

primary
#4F2787
secondary
#8DB456
accent
#DF49A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2787

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

Preview Lab → · Contrast checker → · Palette generator →

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