#AFA74A#AFA74A

#AFA74A is a light, moderate yellow. Relative luminance 0.372; OKLCH L 71.6% C 0.115 H 104.4°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA74A
RGBrgb(175, 167, 74)
HSLhsl(55, 41%, 49%)
HSVhsv(55, 58%, 69%)
CMYKcmyk(0%, 4.6%, 57.7%, 31.4%)
CIE-LABlab(67.46, -9.27, 48.16)
CIE-LCHlch(67.46, 49.05, 100.90°)
OKLaboklab(71.63% -0.0286 0.1116)
OKLCHoklch(71.63% 0.115 104.4)
XYZxyz(32.7350, 37.2469, 11.9423)
Luminance0.3725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA74A #4A52AF
analogous
#AF754A #AFA74A #85AF4A
triadic
#AFA74A #4AAFA7 #A74AAF
tetradic
#AFA74A #4AAF75 #4A52AF #AF4A85
square
#AFA74A #4AAF75 #4A52AF #AF4A85
split-complementary
#AFA74A #4A85AF #754AAF
monochromatic
#595526 #847E38 #AFA74A #C4BD73 #D6D19E

Accessibility & contrast

On white

2.49
#AFA74A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#AFA74A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA74A
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA74A#FFFFFF#000000##000000
##AFA74A1.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A240
Deuteranopia (green-blind)
#B7A64F
Tritanopia (blue-blind)
#BB9D93
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa74a;
/* rgb */ color: rgb(175, 167, 74);
/* oklch */ color: oklch(71.6% 0.115 104.4);
Tailwind
colors: {
  custom: {
    50: '#c9c080',
    500: '#afa74a',
    950: '#000000',
  },
}
SCSS
$custom: #afa74a;
$custom-light: #c9c080;
$custom-dark: #000000;
JSON
{
  "hex": "#afa74a",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 74
  },
  "hsl": {
    "h": 55.248,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.7163,
    "c": 0.1152,
    "h": 104.4
  },
  "luminance": 0.37246
}

Semantic roles & 50–950 ramp

primary
#AFA74A
secondary
#9296C2
accent
#61D057
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA74A

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

Preview Lab → · Contrast checker → · Palette generator →

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