#AFAB4F#AFAB4F

#AFAB4F is a light, moderate yellow. Relative luminance 0.388; OKLCH L 72.6% C 0.115 H 106.7°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#AFAB4F
RGBrgb(175, 171, 79)
HSLhsl(58, 38%, 50%)
HSVhsv(58, 55%, 69%)
CMYKcmyk(0%, 2.3%, 54.9%, 31.4%)
CIE-LABlab(68.61, -10.97, 47.11)
CIE-LCHlch(68.61, 48.37, 103.11°)
OKLaboklab(72.56% -0.0329 0.1099)
OKLCHoklch(72.56% 0.115 106.7)
XYZxyz(33.6543, 38.8053, 13.1130)
Luminance0.3880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB4F #4F53AF
analogous
#AF7B4F #AFAB4F #83AF4F
triadic
#AFAB4F #4FAFAB #AB4FAF
tetradic
#AFAB4F #4FAF7B #4F53AF #AF4F83
square
#AFAB4F #4FAF7B #4F53AF #AF4F83
split-complementary
#AFAB4F #4F83AF #7B4FAF
monochromatic
#5B5929 #85823C #AFAB4F #C2BF79 #D5D3A3

Accessibility & contrast

On white

2.40
#AFAB4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#AFAB4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB4F
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB4F#FFFFFF#000000##000000
##AFAB4F1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A546
Deuteranopia (green-blind)
#BAA954
Tritanopia (blue-blind)
#BAA197
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab4f;
/* rgb */ color: rgb(175, 171, 79);
/* oklch */ color: oklch(72.6% 0.115 106.7);
Tailwind
colors: {
  custom: {
    50: '#c9c383',
    500: '#afab4f',
    950: '#000000',
  },
}
SCSS
$custom: #afab4f;
$custom-light: #c9c383;
$custom-dark: #000000;
JSON
{
  "hex": "#afab4f",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 79
  },
  "hsl": {
    "h": 57.5,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.7256,
    "c": 0.11472,
    "h": 106.7
  },
  "luminance": 0.38804
}

Semantic roles & 50–950 ramp

primary
#AFAB4F
secondary
#9799C3
accent
#5FCE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAB4F

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

Preview Lab → · Contrast checker → · Palette generator →

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