#4F2DA2#4F2DA2

#4F2DA2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.176 H 289.7°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4F2DA2
RGBrgb(79, 45, 162)
HSLhsl(257, 57%, 41%)
HSVhsv(257, 72%, 64%)
CMYKcmyk(51.2%, 72.2%, 0%, 36.5%)
CIE-LABlab(29.78, 43.96, -57.81)
CIE-LCHlch(29.78, 72.63, 307.25°)
OKLaboklab(41.41% 0.0596 -0.166)
OKLCHoklch(41.41% 0.176 289.7)
XYZxyz(10.6825, 6.1472, 34.7991)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2DA2 #80A22D
analogous
#2D45A2 #4F2DA2 #892DA2
triadic
#4F2DA2 #A24F2D #2DA24F
tetradic
#4F2DA2 #A22D45 #80A22D #2DA289
square
#4F2DA2 #A22D45 #80A22D #2DA289
split-complementary
#4F2DA2 #A2892D #45A22D
monochromatic
#201242 #382072 #4F2DA2 #6942CA #8F72D8

Accessibility & contrast

On white

9.42
#4F2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4F2DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2DA2
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2DA2#FFFFFF#000000##FFFFFF
##4F2DA21.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#324C64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2da2;
/* rgb */ color: rgb(79, 45, 162);
/* oklch */ color: oklch(41.4% 0.176 289.7);
Tailwind
colors: {
  custom: {
    50: '#8969bf',
    500: '#4f2da2',
    950: '#000000',
  },
}
SCSS
$custom: #4f2da2;
$custom-light: #8969bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2da2",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 257.436,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41407,
    "c": 0.17633,
    "h": 289.7
  },
  "luminance": 0.06148
}

Semantic roles & 50–950 ramp

primary
#4F2DA2
secondary
#A7BF6C
accent
#E048B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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