#4F2F71#4F2F71

#4F2F71 is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.8% C 0.112 H 303.9°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4F2F71
RGBrgb(79, 47, 113)
HSLhsl(269, 41%, 31%)
HSVhsv(269, 58%, 44%)
CMYKcmyk(30.1%, 58.4%, 0%, 55.7%)
CIE-LABlab(26.41, 28.95, -32.82)
CIE-LCHlch(26.41, 43.76, 311.42°)
OKLaboklab(37.78% 0.0623 -0.0926)
OKLCHoklch(37.78% 0.112 303.9)
XYZxyz(7.2209, 4.8876, 16.1826)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F71 #51712F
analogous
#2F3071 #4F2F71 #702F71
triadic
#4F2F71 #714F2F #2F714F
tetradic
#4F2F71 #712F30 #51712F #2F7170
square
#4F2F71 #712F30 #51712F #2F7170
split-complementary
#4F2F71 #71702F #30712F
monochromatic
#130B1B #311D46 #4F2F71 #6D419C #8C5EBC

Accessibility & contrast

On white

10.62
#4F2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4F2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F71
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F71#FFFFFF#000000##FFFFFF
##4F2F711.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E73
Deuteranopia (green-blind)
#213E6F
Tritanopia (blue-blind)
#493C4B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f2f71;
/* rgb */ color: rgb(79, 47, 113);
/* oklch */ color: oklch(37.8% 0.112 303.9);
Tailwind
colors: {
  custom: {
    50: '#83699a',
    500: '#4f2f71',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f71;
$custom-light: #83699a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f71",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 269.091,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37782,
    "c": 0.11155,
    "h": 303.9
  },
  "luminance": 0.04888
}

Semantic roles & 50–950 ramp

primary
#4F2F71
secondary
#7FA25A
accent
#D15796
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4F2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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