#4F2FA4#4F2FA4

#4F2FA4 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.176 H 289.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#4F2FA4
RGBrgb(79, 47, 164)
HSLhsl(256, 55%, 41%)
HSVhsv(256, 71%, 64%)
CMYKcmyk(51.8%, 71.3%, 0%, 35.7%)
CIE-LABlab(30.34, 43.48, -58.10)
CIE-LCHlch(30.34, 72.57, 306.81°)
OKLaboklab(41.86% 0.0573 -0.1668)
OKLCHoklch(41.86% 0.176 289)
XYZxyz(10.9399, 6.3751, 35.7689)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FA4 #84A42F
analogous
#2F4AA4 #4F2FA4 #8A2FA4
triadic
#4F2FA4 #A44F2F #2FA44F
tetradic
#4F2FA4 #A42F4A #84A42F #2FA48A
square
#4F2FA4 #A42F4A #84A42F #2FA48A
split-complementary
#4F2FA4 #A48A2F #4AA42F
monochromatic
#211445 #382174 #4F2FA4 #6A46CA #9176D8

Accessibility & contrast

On white

9.23
#4F2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4F2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FA4
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FA4#FFFFFF#000000##FFFFFF
##4F2FA41.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#304D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2fa4;
/* rgb */ color: rgb(79, 47, 164);
/* oklch */ color: oklch(41.9% 0.176 289.0);
Tailwind
colors: {
  custom: {
    50: '#896ac0',
    500: '#4f2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fa4;
$custom-light: #896ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fa4",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 256.41,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41858,
    "c": 0.17642,
    "h": 289
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#4F2FA4
secondary
#AAC06F
accent
#DF49B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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