#AFAC4D#AFAC4D

#AFAC4D is a light, moderate yellow. Relative luminance 0.392; OKLCH L 72.8% C 0.118 H 107.3°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#AFAC4D
RGBrgb(175, 172, 77)
HSLhsl(58, 39%, 49%)
HSVhsv(58, 56%, 69%)
CMYKcmyk(0%, 1.7%, 56%, 31.4%)
CIE-LABlab(68.86, -11.65, 48.35)
CIE-LCHlch(68.86, 49.73, 103.55°)
OKLaboklab(72.76% -0.035 0.1123)
OKLCHoklch(72.76% 0.118 107.3)
XYZxyz(33.7722, 39.1558, 12.7985)
Luminance0.3916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC4D #4D50AF
analogous
#AF7B4D #AFAC4D #81AF4D
triadic
#AFAC4D #4DAFAC #AC4DAF
tetradic
#AFAC4D #4DAF7B #4D50AF #AF4D81
square
#AFAC4D #4DAF7B #4D50AF #AF4D81
split-complementary
#AFAC4D #4D81AF #7B4DAF
monochromatic
#5A5828 #85823A #AFAC4D #C3C176 #D6D4A1

Accessibility & contrast

On white

2.38
#AFAC4D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#AFAC4D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC4D
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC4D#FFFFFF#000000##000000
##AFAC4D1.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A643
Deuteranopia (green-blind)
#BBAA52
Tritanopia (blue-blind)
#BAA297
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac4d;
/* rgb */ color: rgb(175, 172, 77);
/* oklch */ color: oklch(72.8% 0.118 107.3);
Tailwind
colors: {
  custom: {
    50: '#c9c482',
    500: '#afac4d',
    950: '#000000',
  },
}
SCSS
$custom: #afac4d;
$custom-light: #c9c482;
$custom-dark: #000000;
JSON
{
  "hex": "#afac4d",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 77
  },
  "hsl": {
    "h": 58.163,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.72755,
    "c": 0.11768,
    "h": 107.3
  },
  "luminance": 0.39155
}

Semantic roles & 50–950 ramp

primary
#AFAC4D
secondary
#9597C3
accent
#5DCF59
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAC4D

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

Preview Lab → · Contrast checker → · Palette generator →

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