#4F2AA4#4F2AA4

#4F2AA4 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.182 H 289.8°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#4F2AA4
RGBrgb(79, 42, 164)
HSLhsl(258, 59%, 40%)
HSVhsv(258, 74%, 64%)
CMYKcmyk(51.8%, 74.4%, 0%, 35.7%)
CIE-LABlab(29.41, 46.09, -59.63)
CIE-LCHlch(29.41, 75.37, 307.70°)
OKLaboklab(41.2% 0.0617 -0.1713)
OKLCHoklch(41.2% 0.182 289.8)
XYZxyz(10.7513, 5.9981, 35.7060)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AA4 #7FA42A
analogous
#2A42A4 #4F2AA4 #8C2AA4
triadic
#4F2AA4 #A44F2A #2AA44F
tetradic
#4F2AA4 #A42A42 #7FA42A #2AA48C
square
#4F2AA4 #A42A42 #7FA42A #2AA48C
split-complementary
#4F2AA4 #A48C2A #42A42A
monochromatic
#201143 #381E73 #4F2AA4 #693ECD #8F6EDA

Accessibility & contrast

On white

9.55
#4F2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4F2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AA4
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AA4#FFFFFF#000000##FFFFFF
##4F2AA41.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#304B65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2aa4;
/* rgb */ color: rgb(79, 42, 164);
/* oklch */ color: oklch(41.2% 0.182 289.8);
Tailwind
colors: {
  custom: {
    50: '#8967c0',
    500: '#4f2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aa4;
$custom-light: #8967c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aa4",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 258.197,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41198,
    "c": 0.18208,
    "h": 289.8
  },
  "luminance": 0.05999
}

Semantic roles & 50–950 ramp

primary
#4F2AA4
secondary
#A6C169
accent
#E245B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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