#AFA728#AFA728

#AFA728 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.3% C 0.140 H 105.7°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#AFA728
RGBrgb(175, 167, 40)
HSLhsl(56, 63%, 42%)
HSVhsv(56, 77%, 69%)
CMYKcmyk(0%, 4.6%, 77.1%, 31.4%)
CIE-LABlab(67.21, -11.24, 61.65)
CIE-LCHlch(67.21, 62.67, 100.33°)
OKLaboklab(71.35% -0.0378 0.1346)
OKLCHoklch(71.35% 0.14 105.7)
XYZxyz(31.8823, 36.9058, 7.4512)
Luminance0.3690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA728 #2830AF
analogous
#AF6328 #AFA728 #74AF28
triadic
#AFA728 #28AFA7 #A728AF
tetradic
#AFA728 #28AF63 #2830AF #AF2874
square
#AFA728 #28AF63 #2830AF #AF2874
split-complementary
#AFA728 #2874AF #6328AF
monochromatic
#4B4811 #7D771D #AFA728 #D4CB41 #DFD873

Accessibility & contrast

On white

2.51
#AFA728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#AFA728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA728
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA728#FFFFFF#000000##000000
##AFA7281.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A107
Deuteranopia (green-blind)
#B9A632
Tritanopia (blue-blind)
#BC9B8F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa728;
/* rgb */ color: rgb(175, 167, 40);
/* oklch */ color: oklch(71.3% 0.140 105.7);
Tailwind
colors: {
  custom: {
    50: '#cbc06d',
    500: '#afa728',
    950: '#000000',
  },
}
SCSS
$custom: #afa728;
$custom-light: #cbc06d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa728",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 40
  },
  "hsl": {
    "h": 56.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.71345,
    "c": 0.13982,
    "h": 105.7
  },
  "luminance": 0.36905
}

Semantic roles & 50–950 ramp

primary
#AFA728
secondary
#6D72C6
accent
#4CE642
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA728

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

Preview Lab → · Contrast checker → · Palette generator →

#AFA728 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva