#4F2A71#4F2A71

#4F2A71 is a dark, moderate violet. Relative luminance 0.045; OKLCH L 37.0% C 0.120 H 305.3°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#4F2A71
RGBrgb(79, 42, 113)
HSLhsl(271, 46%, 30%)
HSVhsv(271, 63%, 44%)
CMYKcmyk(30.1%, 62.8%, 0%, 55.7%)
CIE-LABlab(25.29, 31.92, -34.61)
CIE-LCHlch(25.29, 47.08, 312.69°)
OKLaboklab(36.96% 0.0693 -0.0978)
OKLCHoklch(36.96% 0.12 305.3)
XYZxyz(7.0324, 4.5105, 16.1197)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A71 #4C712A
analogous
#2C2A71 #4F2A71 #712A6F
triadic
#4F2A71 #714F2A #2A714F
tetradic
#4F2A71 #712C2A #4C712A #2A6F71
square
#4F2A71 #712C2A #4C712A #2A6F71
split-complementary
#4F2A71 #6F712A #2A712C
monochromatic
#110918 #301944 #4F2A71 #6E3B9E #8D55C0

Accessibility & contrast

On white

11.04
#4F2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4F2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A71
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A71#FFFFFF#000000##FFFFFF
##4F2A711.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083B73
Deuteranopia (green-blind)
#1B3C6F
Tritanopia (blue-blind)
#493849
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f2a71;
/* rgb */ color: rgb(79, 42, 113);
/* oklch */ color: oklch(37.0% 0.120 305.3);
Tailwind
colors: {
  custom: {
    50: '#83659a',
    500: '#4f2a71',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a71;
$custom-light: #83659a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a71",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 271.268,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36962,
    "c": 0.11984,
    "h": 305.3
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#4F2A71
secondary
#7AA354
accent
#D55291
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4F2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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