#AF9728#AF9728

#AF9728 is a light, vivid yellow. Relative luminance 0.314; OKLCH L 67.9% C 0.127 H 96.3°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#AF9728
RGBrgb(175, 151, 40)
HSLhsl(49, 63%, 42%)
HSVhsv(49, 77%, 69%)
CMYKcmyk(0%, 13.7%, 77.1%, 31.4%)
CIE-LABlab(62.85, -2.74, 57.64)
CIE-LCHlch(62.85, 57.70, 92.72°)
OKLaboklab(67.88% -0.0138 0.126)
OKLCHoklch(67.88% 0.127 96.3)
XYZxyz(29.1304, 31.4020, 6.5339)
Luminance0.3140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9728 #2840AF
analogous
#AF5328 #AF9728 #84AF28
triadic
#AF9728 #28AF97 #9728AF
tetradic
#AF9728 #28AF53 #2840AF #AF2884
square
#AF9728 #28AF53 #2840AF #AF2884
split-complementary
#AF9728 #2884AF #5328AF
monochromatic
#4B4111 #7D6C1D #AF9728 #D4B941 #DFCC73

Accessibility & contrast

On white

2.88
#AF9728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#AF9728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9728
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9728#FFFFFF#000000##000000
##AF97281.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79411
Deuteranopia (green-blind)
#AD9B2F
Tritanopia (blue-blind)
#BD8B82
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af9728;
/* rgb */ color: rgb(175, 151, 40);
/* oklch */ color: oklch(67.9% 0.127 96.3);
Tailwind
colors: {
  custom: {
    50: '#cbb56b',
    500: '#af9728',
    950: '#000000',
  },
}
SCSS
$custom: #af9728;
$custom-light: #cbb56b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9728",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 40
  },
  "hsl": {
    "h": 49.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.67882,
    "c": 0.1268,
    "h": 96.3
  },
  "luminance": 0.314
}

Semantic roles & 50–950 ramp

primary
#AF9728
secondary
#6D7DC6
accent
#5FE642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9728

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

Preview Lab → · Contrast checker → · Palette generator →

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