#4F2FA3#4F2FA3

#4F2FA3 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.175 H 289.2°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#4F2FA3
RGBrgb(79, 47, 163)
HSLhsl(257, 55%, 41%)
HSVhsv(257, 71%, 64%)
CMYKcmyk(51.5%, 71.2%, 0%, 36.1%)
CIE-LABlab(30.25, 43.18, -57.64)
CIE-LCHlch(30.25, 72.02, 306.84°)
OKLaboklab(41.77% 0.0575 -0.1655)
OKLCHoklch(41.77% 0.175 289.2)
XYZxyz(10.8499, 6.3392, 35.2951)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FA3 #83A32F
analogous
#2F49A3 #4F2FA3 #892FA3
triadic
#4F2FA3 #A34F2F #2FA34F
tetradic
#4F2FA3 #A32F49 #83A32F #2FA389
square
#4F2FA3 #A32F49 #83A32F #2FA389
split-complementary
#4F2FA3 #A3892F #49A32F
monochromatic
#211444 #382173 #4F2FA3 #6A46CA #9075D7

Accessibility & contrast

On white

9.26
#4F2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4F2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FA3
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FA3#FFFFFF#000000##FFFFFF
##4F2FA31.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#314D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2fa3;
/* rgb */ color: rgb(79, 47, 163);
/* oklch */ color: oklch(41.8% 0.175 289.2);
Tailwind
colors: {
  custom: {
    50: '#896abf',
    500: '#4f2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fa3;
$custom-light: #896abf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fa3",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 256.552,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41769,
    "c": 0.1752,
    "h": 289.2
  },
  "luminance": 0.0634
}

Semantic roles & 50–950 ramp

primary
#4F2FA3
secondary
#A9BF6F
accent
#DF49B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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