#4F2AA0#4F2AA0

#4F2AA0 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.177 H 290.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4F2AA0
RGBrgb(79, 42, 160)
HSLhsl(259, 58%, 40%)
HSVhsv(259, 74%, 63%)
CMYKcmyk(50.6%, 73.8%, 0%, 37.3%)
CIE-LABlab(29.05, 44.95, -57.80)
CIE-LCHlch(29.05, 73.22, 307.87°)
OKLaboklab(40.83% 0.0627 -0.1659)
OKLCHoklch(40.83% 0.177 290.7)
XYZxyz(10.3958, 5.8558, 33.8334)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AA0 #7BA02A
analogous
#2A40A0 #4F2AA0 #8A2AA0
triadic
#4F2AA0 #A04F2A #2AA04F
tetradic
#4F2AA0 #A02A40 #7BA02A #2AA08A
square
#4F2AA0 #A02A40 #7BA02A #2AA08A
split-complementary
#4F2AA0 #A08A2A #40A02A
monochromatic
#1F113F #371D70 #4F2AA0 #693CCC #8E6CD8

Accessibility & contrast

On white

9.67
#4F2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4F2AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AA0
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AA0#FFFFFF#000000##FFFFFF
##4F2AA01.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#334962
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f2aa0;
/* rgb */ color: rgb(79, 42, 160);
/* oklch */ color: oklch(40.8% 0.177 290.7);
Tailwind
colors: {
  custom: {
    50: '#8967bd',
    500: '#4f2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aa0;
$custom-light: #8967bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aa0",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 258.814,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40831,
    "c": 0.17737,
    "h": 290.7
  },
  "luminance": 0.05856
}

Semantic roles & 50–950 ramp

primary
#4F2AA0
secondary
#A3BF67
accent
#E246B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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