#4F2AA1#4F2AA1

#4F2AA1 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.179 H 290.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4F2AA1
RGBrgb(79, 42, 161)
HSLhsl(259, 59%, 40%)
HSVhsv(259, 74%, 63%)
CMYKcmyk(50.9%, 73.9%, 0%, 36.9%)
CIE-LABlab(29.14, 45.24, -58.26)
CIE-LCHlch(29.14, 73.76, 307.83°)
OKLaboklab(40.92% 0.0624 -0.1673)
OKLCHoklch(40.92% 0.179 290.5)
XYZxyz(10.4836, 5.8910, 34.2960)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AA1 #7CA12A
analogous
#2A41A1 #4F2AA1 #8A2AA1
triadic
#4F2AA1 #A14F2A #2AA14F
tetradic
#4F2AA1 #A12A41 #7CA12A #2AA18A
square
#4F2AA1 #A12A41 #7CA12A #2AA18A
split-complementary
#4F2AA1 #A18A2A #41A12A
monochromatic
#1F1140 #371D70 #4F2AA1 #693CCC #8E6DD9

Accessibility & contrast

On white

9.64
#4F2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4F2AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AA1
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AA1#FFFFFF#000000##FFFFFF
##4F2AA11.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#334A63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2aa1;
/* rgb */ color: rgb(79, 42, 161);
/* oklch */ color: oklch(40.9% 0.179 290.5);
Tailwind
colors: {
  custom: {
    50: '#8967be',
    500: '#4f2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aa1;
$custom-light: #8967be;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aa1",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 258.655,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40922,
    "c": 0.17855,
    "h": 290.5
  },
  "luminance": 0.05891
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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