#AF9B29#AF9B29

#AF9B29 is a light, vivid yellow. Relative luminance 0.327; OKLCH L 68.7% C 0.129 H 98.8°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#AF9B29
RGBrgb(175, 155, 41)
HSLhsl(51, 62%, 42%)
HSVhsv(51, 77%, 69%)
CMYKcmyk(0%, 11.4%, 76.6%, 31.4%)
CIE-LABlab(63.93, -4.85, 58.30)
CIE-LCHlch(63.93, 58.50, 94.76°)
OKLaboklab(68.74% -0.0197 0.1277)
OKLCHoklch(68.74% 0.129 98.8)
XYZxyz(29.8023, 32.7182, 6.8429)
Luminance0.3272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9B29 #293DAF
analogous
#AF5829 #AF9B29 #80AF29
triadic
#AF9B29 #29AF9B #9B29AF
tetradic
#AF9B29 #29AF58 #293DAF #AF2980
square
#AF9B29 #29AF58 #293DAF #AF2980
split-complementary
#AF9B29 #2980AF #5829AF
monochromatic
#4C4312 #7D6F1D #AF9B29 #D3BD42 #DECF74

Accessibility & contrast

On white

2.78
#AF9B29 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#AF9B29 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9B29
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9B29#FFFFFF#000000##000000
##AF9B291.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9712
Deuteranopia (green-blind)
#B09E31
Tritanopia (blue-blind)
#BD8F85
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9b29;
/* rgb */ color: rgb(175, 155, 41);
/* oklch */ color: oklch(68.7% 0.129 98.8);
Tailwind
colors: {
  custom: {
    50: '#cbb86c',
    500: '#af9b29',
    950: '#000000',
  },
}
SCSS
$custom: #af9b29;
$custom-light: #cbb86c;
$custom-dark: #000000;
JSON
{
  "hex": "#af9b29",
  "rgb": {
    "r": 175,
    "g": 155,
    "b": 41
  },
  "hsl": {
    "h": 51.045,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.68744,
    "c": 0.12916,
    "h": 98.8
  },
  "luminance": 0.32717
}

Semantic roles & 50–950 ramp

primary
#AF9B29
secondary
#6E7BC6
accent
#5BE543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9B29

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

Preview Lab → · Contrast checker → · Palette generator →

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