#4F2F79#4F2F79

#4F2F79 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.3% C 0.122 H 300.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4F2F79
RGBrgb(79, 47, 121)
HSLhsl(266, 44%, 33%)
HSVhsv(266, 61%, 47%)
CMYKcmyk(34.7%, 61.2%, 0%, 52.5%)
CIE-LABlab(26.95, 31.14, -37.04)
CIE-LCHlch(26.95, 48.39, 310.05°)
OKLaboklab(38.35% 0.0623 -0.1049)
OKLCHoklch(38.35% 0.122 300.7)
XYZxyz(7.6913, 5.0757, 18.6600)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F79 #59792F
analogous
#2F3479 #4F2F79 #742F79
triadic
#4F2F79 #794F2F #2F794F
tetradic
#4F2F79 #792F34 #59792F #2F7974
square
#4F2F79 #792F34 #59792F #2F7974
split-complementary
#4F2F79 #79742F #34792F
monochromatic
#150D21 #321E4D #4F2F79 #6C40A5 #8B61C2

Accessibility & contrast

On white

10.42
#4F2F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4F2F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F79
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F79#FFFFFF#000000##FFFFFF
##4F2F791.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093F7B
Deuteranopia (green-blind)
#193F77
Tritanopia (blue-blind)
#463E4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2f79;
/* rgb */ color: rgb(79, 47, 121);
/* oklch */ color: oklch(38.3% 0.122 300.7);
Tailwind
colors: {
  custom: {
    50: '#8369a0',
    500: '#4f2f79',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f79;
$custom-light: #8369a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f79",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 265.946,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38349,
    "c": 0.12207,
    "h": 300.7
  },
  "luminance": 0.05076
}

Semantic roles & 50–950 ramp

primary
#4F2F79
secondary
#87A85B
accent
#D4549D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4F2F79

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

Preview Lab → · Contrast checker → · Palette generator →

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