#4F2587#4F2587

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

Color values

HEX#4F2587
RGBrgb(79, 37, 135)
HSLhsl(266, 57%, 34%)
HSVhsv(266, 73%, 53%)
CMYKcmyk(41.5%, 72.6%, 0%, 47.1%)
CIE-LABlab(25.96, 40.57, -47.44)
CIE-LCHlch(25.96, 62.42, 310.54°)
OKLaboklab(37.98% 0.0729 -0.1355)
OKLCHoklch(37.98% 0.154 298.3)
XYZxyz(8.2581, 4.7345, 23.3957)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2587 #5D8725
analogous
#252C87 #4F2587 #802587
triadic
#4F2587 #874F25 #25874F
tetradic
#4F2587 #87252C #5D8725 #258780
square
#4F2587 #87252C #5D8725 #258780
split-complementary
#4F2587 #878025 #2C8725
monochromatic
#170B27 #331857 #4F2587 #6B32B7 #8A56D1

Accessibility & contrast

On white

10.79
#4F2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4F2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2587
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2587#FFFFFF#000000##FFFFFF
##4F25871.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#413D53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f2587;
/* rgb */ color: rgb(79, 37, 135);
/* oklch */ color: oklch(38.0% 0.154 298.3);
Tailwind
colors: {
  custom: {
    50: '#8663ab',
    500: '#4f2587',
    950: '#000000',
  },
}
SCSS
$custom: #4f2587;
$custom-light: #8663ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2587",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 265.714,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37976,
    "c": 0.15384,
    "h": 298.3
  },
  "luminance": 0.04735
}

Semantic roles & 50–950 ramp

primary
#4F2587
secondary
#8BB553
accent
#E0489F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F2587

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

Preview Lab → · Contrast checker → · Palette generator →

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