#4F2A88#4F2A88

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

Color values

HEX#4F2A88
RGBrgb(79, 42, 136)
HSLhsl(264, 53%, 35%)
HSVhsv(264, 69%, 53%)
CMYKcmyk(41.9%, 69.1%, 0%, 46.7%)
CIE-LABlab(27.01, 38.19, -46.37)
CIE-LCHlch(27.01, 60.07, 309.47°)
OKLaboklab(38.75% 0.0673 -0.1324)
OKLCHoklch(38.75% 0.148 297)
XYZxyz(8.4952, 5.0956, 23.8237)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A88 #63882A
analogous
#2A3488 #4F2A88 #7E2A88
triadic
#4F2A88 #884F2A #2A884F
tetradic
#4F2A88 #882A34 #63882A #2A887E
square
#4F2A88 #882A34 #63882A #2A887E
split-complementary
#4F2A88 #887E2A #34882A
monochromatic
#190D2A #341C59 #4F2A88 #6A38B7 #8A5FCE

Accessibility & contrast

On white

10.40
#4F2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4F2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A88
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A88#FFFFFF#000000##FFFFFF
##4F2A881.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f2a88;
/* rgb */ color: rgb(79, 42, 136);
/* oklch */ color: oklch(38.7% 0.148 297.0);
Tailwind
colors: {
  custom: {
    50: '#8566ab',
    500: '#4f2a88',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a88;
$custom-light: #8566ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a88",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 263.617,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38745,
    "c": 0.14849,
    "h": 297
  },
  "luminance": 0.05096
}

Semantic roles & 50–950 ramp

primary
#4F2A88
secondary
#90B35B
accent
#DC4CA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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