#AFA74D#AFA74D

#AFA74D is a light, moderate yellow. Relative luminance 0.373; OKLCH L 71.7% C 0.112 H 104.2°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#AFA74D
RGBrgb(175, 167, 77)
HSLhsl(55, 39%, 49%)
HSVhsv(55, 56%, 69%)
CMYKcmyk(0%, 4.6%, 56%, 31.4%)
CIE-LABlab(67.49, -9.04, 46.78)
CIE-LCHlch(67.49, 47.65, 100.93°)
OKLaboklab(71.66% -0.0276 0.109)
OKLCHoklch(71.66% 0.112 104.2)
XYZxyz(32.8385, 37.2883, 12.4873)
Luminance0.3729 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA74D #4D55AF
analogous
#AF764D #AFA74D #86AF4D
triadic
#AFA74D #4DAFA7 #A74DAF
tetradic
#AFA74D #4DAF76 #4D55AF #AF4D86
square
#AFA74D #4DAF76 #4D55AF #AF4D86
split-complementary
#AFA74D #4D86AF #764DAF
monochromatic
#5A5628 #857E3A #AFA74D #C3BD76 #D6D1A1

Accessibility & contrast

On white

2.48
#AFA74D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#AFA74D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA74D
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA74D#FFFFFF#000000##000000
##AFA74D1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa74d;
/* rgb */ color: rgb(175, 167, 77);
/* oklch */ color: oklch(71.7% 0.112 104.2);
Tailwind
colors: {
  custom: {
    50: '#c9c082',
    500: '#afa74d',
    950: '#000000',
  },
}
SCSS
$custom: #afa74d;
$custom-light: #c9c082;
$custom-dark: #000000;
JSON
{
  "hex": "#afa74d",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 77
  },
  "hsl": {
    "h": 55.102,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.71664,
    "c": 0.11242,
    "h": 104.2
  },
  "luminance": 0.37287
}

Semantic roles & 50–950 ramp

primary
#AFA74D
secondary
#9599C3
accent
#63CF59
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA74D

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

Preview Lab → · Contrast checker → · Palette generator →

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