#4F2A87#4F2A87

#4F2A87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.147 H 297.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#4F2A87
RGBrgb(79, 42, 135)
HSLhsl(264, 53%, 35%)
HSVhsv(264, 69%, 53%)
CMYKcmyk(41.5%, 68.9%, 0%, 47.1%)
CIE-LABlab(26.93, 37.91, -45.88)
CIE-LCHlch(26.93, 59.51, 309.57°)
OKLaboklab(38.66% 0.0674 -0.1309)
OKLCHoklch(38.66% 0.147 297.3)
XYZxyz(8.4245, 5.0673, 23.4512)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A87 #62872A
analogous
#2A3487 #4F2A87 #7E2A87
triadic
#4F2A87 #874F2A #2A874F
tetradic
#4F2A87 #872A34 #62872A #2A877E
square
#4F2A87 #872A34 #62872A #2A877E
split-complementary
#4F2A87 #877E2A #34872A
monochromatic
#180D2A #341B58 #4F2A87 #6A39B6 #8A5ECD

Accessibility & contrast

On white

10.43
#4F2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4F2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A87
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A87#FFFFFF#000000##FFFFFF
##4F2A871.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#414055
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2a87;
/* rgb */ color: rgb(79, 42, 135);
/* oklch */ color: oklch(38.7% 0.147 297.3);
Tailwind
colors: {
  custom: {
    50: '#8566ab',
    500: '#4f2a87',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a87;
$custom-light: #8566ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a87",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 263.871,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38662,
    "c": 0.14726,
    "h": 297.3
  },
  "luminance": 0.05067
}

Semantic roles & 50–950 ramp

primary
#4F2A87
secondary
#8FB35A
accent
#DC4CA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4F2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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