#4F2988#4F2988

#4F2988 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.150 H 297.2°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4F2988
RGBrgb(79, 41, 136)
HSLhsl(264, 54%, 35%)
HSVhsv(264, 70%, 53%)
CMYKcmyk(41.9%, 69.9%, 0%, 46.7%)
CIE-LABlab(26.81, 38.73, -46.69)
CIE-LCHlch(26.81, 60.66, 309.68°)
OKLaboklab(38.6% 0.0684 -0.1333)
OKLCHoklch(38.6% 0.15 297.2)
XYZxyz(8.4602, 5.0256, 23.8121)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2988 #628829
analogous
#293388 #4F2988 #7F2988
triadic
#4F2988 #884F29 #29884F
tetradic
#4F2988 #882933 #628829 #29887F
square
#4F2988 #882933 #628829 #29887F
split-complementary
#4F2988 #887F29 #338829
monochromatic
#180D2A #341B59 #4F2988 #6A37B7 #8A5DCE

Accessibility & contrast

On white

10.47
#4F2988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2988
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2988#FFFFFF#000000##FFFFFF
##4F29881.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#414055
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f2988;
/* rgb */ color: rgb(79, 41, 136);
/* oklch */ color: oklch(38.6% 0.150 297.2);
Tailwind
colors: {
  custom: {
    50: '#8566ab',
    500: '#4f2988',
    950: '#000000',
  },
}
SCSS
$custom: #4f2988;
$custom-light: #8566ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2988",
  "rgb": {
    "r": 79,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 264,
    "s": 53.672,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38603,
    "c": 0.14983,
    "h": 297.2
  },
  "luminance": 0.05026
}

Semantic roles & 50–950 ramp

primary
#4F2988
secondary
#8FB459
accent
#DD4BA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2988

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

Preview Lab → · Contrast checker → · Palette generator →

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