#AF9D4F#AF9D4F

#AF9D4F is a light, moderate yellow. Relative luminance 0.338; OKLCH L 69.5% C 0.101 H 96.6°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#AF9D4F
RGBrgb(175, 157, 79)
HSLhsl(49, 38%, 50%)
HSVhsv(49, 55%, 69%)
CMYKcmyk(0%, 10.3%, 54.9%, 31.4%)
CIE-LABlab(64.80, -3.55, 42.68)
CIE-LCHlch(64.80, 42.83, 94.75°)
OKLaboklab(69.54% -0.0116 0.1003)
OKLCHoklch(69.54% 0.101 96.6)
XYZxyz(31.1486, 33.7937, 12.2777)
Luminance0.3379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D4F #4F61AF
analogous
#AF6D4F #AF9D4F #91AF4F
triadic
#AF9D4F #4FAF9D #9D4FAF
tetradic
#AF9D4F #4FAF6D #4F61AF #AF4F91
square
#AF9D4F #4FAF6D #4F61AF #AF4F91
split-complementary
#AF9D4F #4F91AF #6D4FAF
monochromatic
#5B5129 #85773C #AF9D4F #C2B579 #D5CCA3

Accessibility & contrast

On white

2.71
#AF9D4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#AF9D4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D4F
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D4F#FFFFFF#000000##000000
##AF9D4F1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9A48
Deuteranopia (green-blind)
#AFA052
Tritanopia (blue-blind)
#BB938B
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9d4f;
/* rgb */ color: rgb(175, 157, 79);
/* oklch */ color: oklch(69.5% 0.101 96.6);
Tailwind
colors: {
  custom: {
    50: '#c9b982',
    500: '#af9d4f',
    950: '#000000',
  },
}
SCSS
$custom: #af9d4f;
$custom-light: #c9b982;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d4f",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 79
  },
  "hsl": {
    "h": 48.75,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.69535,
    "c": 0.101,
    "h": 96.6
  },
  "luminance": 0.33792
}

Semantic roles & 50–950 ramp

primary
#AF9D4F
secondary
#979FC3
accent
#70CE5A
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13110B
muted
#82807C

Preview Lab

Preview with #AF9D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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