#AFA54A#AFA54A

#AFA54A is a light, moderate yellow. Relative luminance 0.365; OKLCH L 71.2% C 0.113 H 103.1°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA54A
RGBrgb(175, 165, 74)
HSLhsl(54, 41%, 49%)
HSVhsv(54, 58%, 69%)
CMYKcmyk(0%, 5.7%, 57.7%, 31.4%)
CIE-LABlab(66.92, -8.22, 47.55)
CIE-LCHlch(66.92, 48.25, 99.80°)
OKLaboklab(71.2% -0.0256 0.1103)
OKLCHoklch(71.2% 0.113 103.1)
XYZxyz(32.3715, 36.5198, 11.8211)
Luminance0.3652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA54A #4A54AF
analogous
#AF734A #AFA54A #87AF4A
triadic
#AFA54A #4AAFA5 #A54AAF
tetradic
#AFA54A #4AAF73 #4A54AF #AF4A87
square
#AFA54A #4AAF73 #4A54AF #AF4A87
split-complementary
#AFA54A #4A87AF #734AAF
monochromatic
#595426 #847C38 #AFA54A #C4BC73 #D6D09E

Accessibility & contrast

On white

2.53
#AFA54A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#AFA54A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA54A
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA54A#FFFFFF#000000##000000
##AFA54A1.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A041
Deuteranopia (green-blind)
#B6A54F
Tritanopia (blue-blind)
#BB9B91
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa54a;
/* rgb */ color: rgb(175, 165, 74);
/* oklch */ color: oklch(71.2% 0.113 103.1);
Tailwind
colors: {
  custom: {
    50: '#c9bf80',
    500: '#afa54a',
    950: '#000000',
  },
}
SCSS
$custom: #afa54a;
$custom-light: #c9bf80;
$custom-dark: #000000;
JSON
{
  "hex": "#afa54a",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 74
  },
  "hsl": {
    "h": 54.059,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.71196,
    "c": 0.11319,
    "h": 103.1
  },
  "luminance": 0.36519
}

Semantic roles & 50–950 ramp

primary
#AFA54A
secondary
#9297C2
accent
#63D057
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA54A

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

Preview Lab → · Contrast checker → · Palette generator →

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