#AFAC4F#AFAC4F

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

Color values

HEX#AFAC4F
RGBrgb(175, 172, 79)
HSLhsl(58, 38%, 50%)
HSVhsv(58, 55%, 69%)
CMYKcmyk(0%, 1.7%, 54.9%, 31.4%)
CIE-LABlab(68.88, -11.49, 47.43)
CIE-LCHlch(68.88, 48.80, 103.62°)
OKLaboklab(72.78% -0.0344 0.1106)
OKLCHoklch(72.78% 0.116 107.3)
XYZxyz(33.8439, 39.1845, 13.1762)
Luminance0.3918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC4F #4F52AF
analogous
#AF7C4F #AFAC4F #82AF4F
triadic
#AFAC4F #4FAFAC #AC4FAF
tetradic
#AFAC4F #4FAF7C #4F52AF #AF4F82
square
#AFAC4F #4FAF7C #4F52AF #AF4F82
split-complementary
#AFAC4F #4F82AF #7C4FAF
monochromatic
#5B5929 #85833C #AFAC4F #C2C079 #D5D4A3

Accessibility & contrast

On white

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

On black

8.84
#AFAC4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC4F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC4F#FFFFFF#000000##000000
##AFAC4F1.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afac4f;
/* rgb */ color: rgb(175, 172, 79);
/* oklch */ color: oklch(72.8% 0.116 107.3);
Tailwind
colors: {
  custom: {
    50: '#c9c483',
    500: '#afac4f',
    950: '#000000',
  },
}
SCSS
$custom: #afac4f;
$custom-light: #c9c483;
$custom-dark: #000000;
JSON
{
  "hex": "#afac4f",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 79
  },
  "hsl": {
    "h": 58.125,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.72779,
    "c": 0.11581,
    "h": 107.3
  },
  "luminance": 0.39184
}

Semantic roles & 50–950 ramp

primary
#AFAC4F
secondary
#9799C3
accent
#5ECE5A
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAC4F

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

Preview Lab → · Contrast checker → · Palette generator →

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