#4F2DA4#4F2DA4

#4F2DA4 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.179 H 289.3°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4F2DA4
RGBrgb(79, 45, 164)
HSLhsl(257, 57%, 41%)
HSVhsv(257, 73%, 64%)
CMYKcmyk(51.8%, 72.6%, 0%, 35.7%)
CIE-LABlab(29.96, 44.54, -58.73)
CIE-LCHlch(29.96, 73.71, 307.18°)
OKLaboklab(41.59% 0.0591 -0.1687)
OKLCHoklch(41.59% 0.179 289.3)
XYZxyz(10.8617, 6.2189, 35.7428)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2DA4 #82A42D
analogous
#2D46A4 #4F2DA4 #8A2DA4
triadic
#4F2DA4 #A44F2D #2DA44F
tetradic
#4F2DA4 #A42D46 #82A42D #2DA48A
square
#4F2DA4 #A42D46 #82A42D #2DA48A
split-complementary
#4F2DA4 #A48A2D #46A42D
monochromatic
#211344 #382074 #4F2DA4 #6A43CB #9073D9

Accessibility & contrast

On white

9.36
#4F2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4F2DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2DA4
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2DA4#FFFFFF#000000##FFFFFF
##4F2DA41.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#304C65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2da4;
/* rgb */ color: rgb(79, 45, 164);
/* oklch */ color: oklch(41.6% 0.179 289.3);
Tailwind
colors: {
  custom: {
    50: '#8969c0',
    500: '#4f2da4',
    950: '#000000',
  },
}
SCSS
$custom: #4f2da4;
$custom-light: #8969c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2da4",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 257.143,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41587,
    "c": 0.17873,
    "h": 289.3
  },
  "luminance": 0.06219
}

Semantic roles & 50–950 ramp

primary
#4F2DA4
secondary
#A8C06D
accent
#E048B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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