#4F2AA2#4F2AA2

#4F2AA2 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.180 H 290.3°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#4F2AA2
RGBrgb(79, 42, 162)
HSLhsl(259, 59%, 40%)
HSVhsv(259, 74%, 64%)
CMYKcmyk(51.2%, 74.1%, 0%, 36.5%)
CIE-LABlab(29.23, 45.52, -58.72)
CIE-LCHlch(29.23, 74.30, 307.79°)
OKLaboklab(41.01% 0.0622 -0.1686)
OKLCHoklch(41.01% 0.18 290.3)
XYZxyz(10.5721, 5.9264, 34.7623)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AA2 #7DA22A
analogous
#2A41A2 #4F2AA2 #8B2AA2
triadic
#4F2AA2 #A24F2A #2AA24F
tetradic
#4F2AA2 #A22A41 #7DA22A #2AA28B
square
#4F2AA2 #A22A41 #7DA22A #2AA28B
split-complementary
#4F2AA2 #A28B2A #41A22A
monochromatic
#201141 #371D71 #4F2AA2 #693DCD #8E6DD9

Accessibility & contrast

On white

9.61
#4F2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4F2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AA2
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AA2#FFFFFF#000000##FFFFFF
##4F2AA21.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#324A64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2aa2;
/* rgb */ color: rgb(79, 42, 162);
/* oklch */ color: oklch(41.0% 0.180 290.3);
Tailwind
colors: {
  custom: {
    50: '#8967bf',
    500: '#4f2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aa2;
$custom-light: #8967bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aa2",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 258.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.41014,
    "c": 0.17973,
    "h": 290.3
  },
  "luminance": 0.05927
}

Semantic roles & 50–950 ramp

primary
#4F2AA2
secondary
#A5C068
accent
#E246B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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