#4F2872#4F2872

#4F2872 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.124 H 305.4°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#4F2872
RGBrgb(79, 40, 114)
HSLhsl(272, 48%, 30%)
HSVhsv(272, 65%, 45%)
CMYKcmyk(30.7%, 64.9%, 0%, 55.3%)
CIE-LABlab(24.94, 33.33, -35.82)
CIE-LCHlch(24.94, 48.93, 312.94°)
OKLaboklab(36.73% 0.0719 -0.1013)
OKLCHoklch(36.73% 0.124 305.4)
XYZxyz(7.0198, 4.3948, 16.3948)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2872 #4B7228
analogous
#2A2872 #4F2872 #722870
triadic
#4F2872 #724F28 #28724F
tetradic
#4F2872 #722A28 #4B7228 #287072
square
#4F2872 #722A28 #4B7228 #287072
split-complementary
#4F2872 #707228 #28722A
monochromatic
#100817 #301845 #4F2872 #6E389F #8D52C2

Accessibility & contrast

On white

11.18
#4F2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4F2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2872
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2872#FFFFFF#000000##FFFFFF
##4F28721.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#173B70
Tritanopia (blue-blind)
#493749
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f2872;
/* rgb */ color: rgb(79, 40, 114);
/* oklch */ color: oklch(36.7% 0.124 305.4);
Tailwind
colors: {
  custom: {
    50: '#83649b',
    500: '#4f2872',
    950: '#000000',
  },
}
SCSS
$custom: #4f2872;
$custom-light: #83649b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2872",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 271.622,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36726,
    "c": 0.12428,
    "h": 305.4
  },
  "luminance": 0.04395
}

Semantic roles & 50–950 ramp

primary
#4F2872
secondary
#79A452
accent
#D85090
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4F2872

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

Preview Lab → · Contrast checker → · Palette generator →

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