#AFD521

A color in the Yellow, Gold family

#afd521 is a color in the Yellow, Gold family: RGB(175, 213, 33), HSL(73°, 73%, 48%), CMYK(18%, 0%, 85%, 16%). Closest named color: yellowgreen. Contrast is 1.7:1 on white and 12.36:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#afd521
RGBrgb(175 213 33)
RGB (legacy)rgb(175, 213, 33)
RGB %rgb(69% 84% 13%)
HSLhsl(73 73% 48%)
HSV / HSBhsv(73, 85%, 84%)
HWBhwb(73 13% 16%)
CMYKcmyk(18%, 0%, 85%, 16%)
CIELAB (D50)lab(80.37 -28.87 73.72)
LCHlch(80.37 79.18 111.39)
OKLaboklab(0.8167 -0.1011 0.1616)
OKLCHoklch(0.8167 0.1906 122.03)
Decimal11523361

Properties

Color ToneYellow, Gold
Closest named coloryellowgreen ΔE 3.6
Closest web-safe color#99cc33
Hue73°
Saturation (HSL / HSV)73% / 85%
Lightness (HSL)48%
Brightness or Value (HSV)84%
Luminance (Rec.601 / Rec.709)71% / 75%
Relative luminance (WCAG)0.5681
Red / Green / Blue175 / 213 / 33

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 30.1 / -72.7 · As background with white / black text: Lc -33.9 / 73.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: #afd521;
  --color-brand-oklch: oklch(81.67% 0.1906 122.03);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(175 213 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#afd521] text-[#afd521] border-[#afd521]">