#AF4792

A color in the Purple, Crimson, Magenta family

#af4792 is a color in the Purple, Crimson, Magenta family: RGB(175, 71, 146), HSL(317°, 42%, 48%), CMYK(0%, 59%, 17%, 31%). Closest named color: mediumvioletred. Contrast is 5.07:1 on white and 4.14:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#af4792
RGBrgb(175 71 146)
RGB (legacy)rgb(175, 71, 146)
RGB %rgb(69% 28% 57%)
HSLhsl(317 42% 48%)
HSV / HSBhsv(317, 59%, 69%)
HWBhwb(317 28% 31%)
CMYKcmyk(0%, 59%, 17%, 31%)
CIELAB (D50)lab(46.71 49.52 -20.09)
LCHlch(46.71 53.44 337.92)
OKLaboklab(0.5605 0.1513 -0.0555)
OKLCHoklch(0.5605 0.1612 339.87)
Decimal11487122

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 6.9
Closest web-safe color#993399
Hue317°
Saturation (HSL / HSV)42% / 59%
Lightness (HSL)48%
Brightness or Value (HSV)69%
Luminance (Rec.601 / Rec.709)43% / 39%
Relative luminance (WCAG)0.157
Red / Green / Blue175 / 71 / 146

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.07:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.14:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 74.4 / -27.3 · As background with white / black text: Lc -79.8 / 29.7

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #af4792;
  --color-brand-oklch: oklch(56.05% 0.1612 339.87);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(175 71 146 / 50%); }
/* Tailwind CSS */
<div class="bg-[#af4792] text-[#af4792] border-[#af4792]">