#4F2C9D#4F2C9D

#4F2C9D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.171 H 291.0°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#4F2C9D
RGBrgb(79, 44, 157)
HSLhsl(259, 56%, 39%)
HSVhsv(259, 72%, 62%)
CMYKcmyk(49.7%, 72%, 0%, 38.4%)
CIE-LABlab(29.15, 43.05, -55.80)
CIE-LCHlch(29.15, 70.48, 307.65°)
OKLaboklab(40.83% 0.0615 -0.1601)
OKLCHoklch(40.83% 0.171 291)
XYZxyz(10.2092, 5.8976, 32.4922)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2C9D #7A9D2C
analogous
#2C429D #4F2C9D #882C9D
triadic
#4F2C9D #9D4F2C #2C9D4F
tetradic
#4F2C9D #9D2C42 #7A9D2C #2C9D88
square
#4F2C9D #9D2C42 #7A9D2C #2C9D88
split-complementary
#4F2C9D #9D882C #429D2C
monochromatic
#1F113D #371F6D #4F2C9D #693DC9 #8E6DD6

Accessibility & contrast

On white

9.63
#4F2C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4F2C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2C9D
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2C9D#FFFFFF#000000##FFFFFF
##4F2C9D1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#354961
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2c9d;
/* rgb */ color: rgb(79, 44, 157);
/* oklch */ color: oklch(40.8% 0.171 291.0);
Tailwind
colors: {
  custom: {
    50: '#8868bb',
    500: '#4f2c9d',
    950: '#000000',
  },
}
SCSS
$custom: #4f2c9d;
$custom-light: #8868bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2c9d",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 258.584,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40825,
    "c": 0.17149,
    "h": 291
  },
  "luminance": 0.05898
}

Semantic roles & 50–950 ramp

primary
#4F2C9D
secondary
#A3BD68
accent
#E048B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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