#AFA84F#AFA84F

#AFA84F is a light, moderate yellow. Relative luminance 0.377; OKLCH L 71.9% C 0.112 H 104.7°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#AFA84F
RGBrgb(175, 168, 79)
HSLhsl(56, 38%, 50%)
HSVhsv(56, 55%, 69%)
CMYKcmyk(0%, 4%, 54.9%, 31.4%)
CIE-LABlab(67.79, -9.40, 46.17)
CIE-LCHlch(67.79, 47.11, 101.51°)
OKLaboklab(71.91% -0.0284 0.1079)
OKLCHoklch(71.91% 0.112 104.7)
XYZxyz(33.0941, 37.6848, 12.9262)
Luminance0.3768 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA84F #4F56AF
analogous
#AF784F #AFA84F #86AF4F
triadic
#AFA84F #4FAFA8 #A84FAF
tetradic
#AFA84F #4FAF78 #4F56AF #AF4F86
square
#AFA84F #4FAF78 #4F56AF #AF4F86
split-complementary
#AFA84F #4F86AF #784FAF
monochromatic
#5B5729 #85803C #AFA84F #C2BD79 #D5D2A3

Accessibility & contrast

On white

2.46
#AFA84F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#AFA84F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA84F
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA84F#FFFFFF#000000##000000
##AFA84F1.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A346
Deuteranopia (green-blind)
#B8A753
Tritanopia (blue-blind)
#BB9E94
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa84f;
/* rgb */ color: rgb(175, 168, 79);
/* oklch */ color: oklch(71.9% 0.112 104.7);
Tailwind
colors: {
  custom: {
    50: '#c9c183',
    500: '#afa84f',
    950: '#000000',
  },
}
SCSS
$custom: #afa84f;
$custom-light: #c9c183;
$custom-dark: #000000;
JSON
{
  "hex": "#afa84f",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 79
  },
  "hsl": {
    "h": 55.625,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.71906,
    "c": 0.11154,
    "h": 104.7
  },
  "luminance": 0.37684
}

Semantic roles & 50–950 ramp

primary
#AFA84F
secondary
#979AC3
accent
#62CE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA84F

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

Preview Lab → · Contrast checker → · Palette generator →

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