#AFAA4F#AFAA4F

#AFAA4F is a light, moderate yellow. Relative luminance 0.384; OKLCH L 72.3% C 0.114 H 106.0°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#AFAA4F
RGBrgb(175, 170, 79)
HSLhsl(57, 38%, 50%)
HSVhsv(57, 55%, 69%)
CMYKcmyk(0%, 2.9%, 54.9%, 31.4%)
CIE-LABlab(68.34, -10.45, 46.80)
CIE-LCHlch(68.34, 47.95, 102.58°)
OKLaboklab(72.34% -0.0314 0.1092)
OKLCHoklch(72.34% 0.114 106)
XYZxyz(33.4662, 38.4289, 13.0503)
Luminance0.3843 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA4F #4F54AF
analogous
#AF7A4F #AFAA4F #84AF4F
triadic
#AFAA4F #4FAFAA #AA4FAF
tetradic
#AFAA4F #4FAF7A #4F54AF #AF4F84
square
#AFAA4F #4FAF7A #4F54AF #AF4F84
split-complementary
#AFAA4F #4F84AF #7A4FAF
monochromatic
#5B5829 #85813C #AFAA4F #C2BF79 #D5D3A3

Accessibility & contrast

On white

2.42
#AFAA4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#AFAA4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA4F
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA4F#FFFFFF#000000##000000
##AFAA4F1.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A446
Deuteranopia (green-blind)
#B9A854
Tritanopia (blue-blind)
#BAA096
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afaa4f;
/* rgb */ color: rgb(175, 170, 79);
/* oklch */ color: oklch(72.3% 0.114 106.0);
Tailwind
colors: {
  custom: {
    50: '#c9c383',
    500: '#afaa4f',
    950: '#000000',
  },
}
SCSS
$custom: #afaa4f;
$custom-light: #c9c383;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa4f",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 79
  },
  "hsl": {
    "h": 56.875,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.72341,
    "c": 0.11365,
    "h": 106
  },
  "luminance": 0.38428
}

Semantic roles & 50–950 ramp

primary
#AFAA4F
secondary
#9799C3
accent
#60CE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAA4F

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

Preview Lab → · Contrast checker → · Palette generator →

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