#4F2AC7#4F2AC7

#4F2AC7 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.6% C 0.222 H 283.6°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#4F2AC7
RGBrgb(79, 42, 199)
HSLhsl(254, 65%, 47%)
HSVhsv(254, 79%, 78%)
CMYKcmyk(60.3%, 78.9%, 0%, 22%)
CIE-LABlab(32.79, 55.99, -74.87)
CIE-LCHlch(32.79, 93.49, 306.79°)
OKLaboklab(44.59% 0.052 -0.2159)
OKLCHoklch(44.59% 0.222 283.6)
XYZxyz(14.3580, 7.4407, 54.7014)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AC7 #A2C72A
analogous
#2A54C7 #4F2AC7 #9D2AC7
triadic
#4F2AC7 #C74F2A #2AC74F
tetradic
#4F2AC7 #C72A54 #A2C72A #2AC79D
square
#4F2AC7 #C72A54 #A2C72A #2AC79D
split-complementary
#4F2AC7 #C79D2A #54C72A
monochromatic
#271562 #3B1F94 #4F2AC7 #7353DB #9C86E5

Accessibility & contrast

On white

8.44
#4F2AC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4F2AC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AC7
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AC7#FFFFFF#000000##FFFFFF
##4F2AC71.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CB
Deuteranopia (green-blind)
#0048C4
Tritanopia (blue-blind)
#005979
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4f2ac7;
/* rgb */ color: rgb(79, 42, 199);
/* oklch */ color: oklch(44.6% 0.222 283.6);
Tailwind
colors: {
  custom: {
    50: '#8f69d9',
    500: '#4f2ac7',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ac7;
$custom-light: #8f69d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ac7",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 199
  },
  "hsl": {
    "h": 254.14,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44585,
    "c": 0.22205,
    "h": 283.6
  },
  "luminance": 0.07442
}

Semantic roles & 50–950 ramp

primary
#4F2AC7
secondary
#BCCF7E
accent
#E840C0
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4F2AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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