#4F2572#4F2572

#4F2572 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.129 H 306.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#4F2572
RGBrgb(79, 37, 114)
HSLhsl(273, 51%, 30%)
HSVhsv(273, 68%, 45%)
CMYKcmyk(30.7%, 67.5%, 0%, 55.3%)
CIE-LABlab(24.32, 35.00, -36.81)
CIE-LCHlch(24.32, 50.79, 313.56°)
OKLaboklab(36.28% 0.0758 -0.1042)
OKLCHoklch(36.28% 0.129 306)
XYZxyz(6.9226, 4.2004, 16.3624)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2572 #487225
analogous
#292572 #4F2572 #72256F
triadic
#4F2572 #724F25 #25724F
tetradic
#4F2572 #722925 #487225 #256F72
square
#4F2572 #722925 #487225 #256F72
split-complementary
#4F2572 #6F7225 #257229
monochromatic
#100717 #2F1644 #4F2572 #6F34A0 #8E4CC5

Accessibility & contrast

On white

11.41
#4F2572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4F2572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2572
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2572#FFFFFF#000000##FFFFFF
##4F25721.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#133A70
Tritanopia (blue-blind)
#493548
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f2572;
/* rgb */ color: rgb(79, 37, 114);
/* oklch */ color: oklch(36.3% 0.129 306.0);
Tailwind
colors: {
  custom: {
    50: '#83629b',
    500: '#4f2572',
    950: '#000000',
  },
}
SCSS
$custom: #4f2572;
$custom-light: #83629b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2572",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 272.727,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36283,
    "c": 0.12889,
    "h": 306
  },
  "luminance": 0.042
}

Semantic roles & 50–950 ramp

primary
#4F2572
secondary
#75A54E
accent
#DA4D8D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4F2572

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

Preview Lab → · Contrast checker → · Palette generator →

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