#AF9D24#AF9D24

#AF9D24 is a light, vivid yellow. Relative luminance 0.334; OKLCH L 69.1% C 0.133 H 100.3°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#AF9D24
RGBrgb(175, 157, 36)
HSLhsl(52, 66%, 41%)
HSVhsv(52, 79%, 69%)
CMYKcmyk(0%, 10.3%, 79.4%, 31.4%)
CIE-LABlab(64.45, -6.12, 60.44)
CIE-LCHlch(64.45, 60.75, 95.78°)
OKLaboklab(69.15% -0.0238 0.1312)
OKLCHoklch(69.15% 0.133 100.3)
XYZxyz(30.0561, 33.3567, 6.5241)
Luminance0.3336 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D24 #2436AF
analogous
#AF5824 #AF9D24 #7CAF24
triadic
#AF9D24 #24AF9D #9D24AF
tetradic
#AF9D24 #24AF58 #2436AF #AF247C
square
#AF9D24 #24AF58 #2436AF #AF247C
split-complementary
#AF9D24 #247CAF #5824AF
monochromatic
#49420F #7C6F1A #AF9D24 #D6C23A #E1D26D

Accessibility & contrast

On white

2.74
#AF9D24 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#AF9D24 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D24
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D24#FFFFFF#000000##000000
##AF9D241.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9802
Deuteranopia (green-blind)
#B29F2D
Tritanopia (blue-blind)
#BD9187
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9d24;
/* rgb */ color: rgb(175, 157, 36);
/* oklch */ color: oklch(69.1% 0.133 100.3);
Tailwind
colors: {
  custom: {
    50: '#cbb96a',
    500: '#af9d24',
    950: '#000000',
  },
}
SCSS
$custom: #af9d24;
$custom-light: #cbb96a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d24",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 36
  },
  "hsl": {
    "h": 52.23,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.69146,
    "c": 0.13337,
    "h": 100.3
  },
  "luminance": 0.33355
}

Semantic roles & 50–950 ramp

primary
#AF9D24
secondary
#6874C7
accent
#55E93F
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9D24

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

Preview Lab → · Contrast checker → · Palette generator →

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