#4F2FA1#4F2FA1

#4F2FA1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.173 H 289.6°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4F2FA1
RGBrgb(79, 47, 161)
HSLhsl(257, 55%, 41%)
HSVhsv(257, 71%, 63%)
CMYKcmyk(50.9%, 70.8%, 0%, 36.9%)
CIE-LABlab(30.08, 42.60, -56.72)
CIE-LCHlch(30.08, 70.93, 306.91°)
OKLaboklab(41.59% 0.0579 -0.1628)
OKLCHoklch(41.59% 0.173 289.6)
XYZxyz(10.6721, 6.2680, 34.3588)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FA1 #81A12F
analogous
#2F48A1 #4F2FA1 #882FA1
triadic
#4F2FA1 #A14F2F #2FA14F
tetradic
#4F2FA1 #A12F48 #81A12F #2FA188
square
#4F2FA1 #A12F48 #81A12F #2FA188
split-complementary
#4F2FA1 #A1882F #48A12F
monochromatic
#211342 #382172 #4F2FA1 #6A45C9 #9074D6

Accessibility & contrast

On white

9.32
#4F2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4F2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FA1
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FA1#FFFFFF#000000##FFFFFF
##4F2FA11.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#324C64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2fa1;
/* rgb */ color: rgb(79, 47, 161);
/* oklch */ color: oklch(41.6% 0.173 289.6);
Tailwind
colors: {
  custom: {
    50: '#886abe',
    500: '#4f2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fa1;
$custom-light: #886abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fa1",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 256.842,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41592,
    "c": 0.17277,
    "h": 289.6
  },
  "luminance": 0.06269
}

Semantic roles & 50–950 ramp

primary
#4F2FA1
secondary
#A8BE6E
accent
#DE4AB4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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