#AFA129#AFA129

#AFA129 is a light, vivid yellow. Relative luminance 0.348; OKLCH L 70.0% C 0.134 H 102.4°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#AFA129
RGBrgb(175, 161, 41)
HSLhsl(54, 62%, 42%)
HSVhsv(54, 77%, 69%)
CMYKcmyk(0%, 8%, 76.6%, 31.4%)
CIE-LABlab(65.57, -8.05, 59.81)
CIE-LCHlch(65.57, 60.35, 97.66°)
OKLaboklab(70.04% -0.0287 0.1309)
OKLCHoklch(70.04% 0.134 102.4)
XYZxyz(30.8257, 34.7652, 7.1840)
Luminance0.3476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA129 #2937AF
analogous
#AF5E29 #AFA129 #7AAF29
triadic
#AFA129 #29AFA1 #A129AF
tetradic
#AFA129 #29AF5E #2937AF #AF297A
square
#AFA129 #29AF5E #2937AF #AF297A
split-complementary
#AFA129 #297AAF #5E29AF
monochromatic
#4C4612 #7D731D #AFA129 #D3C442 #DED374

Accessibility & contrast

On white

2.64
#AFA129 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#AFA129 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA129
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA129#FFFFFF#000000##000000
##AFA1291.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C0E
Deuteranopia (green-blind)
#B4A232
Tritanopia (blue-blind)
#BD958A
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa129;
/* rgb */ color: rgb(175, 161, 41);
/* oklch */ color: oklch(70.0% 0.134 102.4);
Tailwind
colors: {
  custom: {
    50: '#cbbc6d',
    500: '#afa129',
    950: '#000000',
  },
}
SCSS
$custom: #afa129;
$custom-light: #cbbc6d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa129",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 41
  },
  "hsl": {
    "h": 53.731,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.70041,
    "c": 0.134,
    "h": 102.4
  },
  "luminance": 0.34764
}

Semantic roles & 50–950 ramp

primary
#AFA129
secondary
#6E77C6
accent
#54E543
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AFA129

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

Preview Lab → · Contrast checker → · Palette generator →

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