#4F2687#4F2687

#4F2687 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.153 H 298.1°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4F2687
RGBrgb(79, 38, 135)
HSLhsl(265, 56%, 34%)
HSVhsv(265, 72%, 53%)
CMYKcmyk(41.5%, 71.9%, 0%, 47.1%)
CIE-LABlab(26.15, 40.05, -47.14)
CIE-LCHlch(26.15, 61.86, 310.36°)
OKLaboklab(38.11% 0.0718 -0.1346)
OKLCHoklch(38.11% 0.153 298.1)
XYZxyz(8.2896, 4.7976, 23.4063)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2687 #5E8726
analogous
#262E87 #4F2687 #802687
triadic
#4F2687 #874F26 #26874F
tetradic
#4F2687 #87262E #5E8726 #268780
square
#4F2687 #87262E #5E8726 #268780
split-complementary
#4F2687 #878026 #2E8726
monochromatic
#170B27 #331957 #4F2687 #6B33B7 #8A58D0

Accessibility & contrast

On white

10.72
#4F2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4F2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2687
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2687#FFFFFF#000000##FFFFFF
##4F26871.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f2687;
/* rgb */ color: rgb(79, 38, 135);
/* oklch */ color: oklch(38.1% 0.153 298.1);
Tailwind
colors: {
  custom: {
    50: '#8664ab',
    500: '#4f2687',
    950: '#000000',
  },
}
SCSS
$custom: #4f2687;
$custom-light: #8664ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2687",
  "rgb": {
    "r": 79,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 265.361,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38108,
    "c": 0.15256,
    "h": 298.1
  },
  "luminance": 0.04798
}

Semantic roles & 50–950 ramp

primary
#4F2687
secondary
#8CB554
accent
#DF48A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F2687

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

Preview Lab → · Contrast checker → · Palette generator →

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