#AFA94F#AFA94F

#AFA94F is a light, moderate yellow. Relative luminance 0.381; OKLCH L 72.1% C 0.113 H 105.4°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#AFA94F
RGBrgb(175, 169, 79)
HSLhsl(56, 38%, 50%)
HSVhsv(56, 55%, 69%)
CMYKcmyk(0%, 3.4%, 54.9%, 31.4%)
CIE-LABlab(68.06, -9.92, 46.48)
CIE-LCHlch(68.06, 47.53, 102.05°)
OKLaboklab(72.12% -0.0299 0.1086)
OKLCHoklch(72.12% 0.113 105.4)
XYZxyz(33.2794, 38.0554, 12.9880)
Luminance0.3805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA94F #4F55AF
analogous
#AF794F #AFA94F #85AF4F
triadic
#AFA94F #4FAFA9 #A94FAF
tetradic
#AFA94F #4FAF79 #4F55AF #AF4F85
square
#AFA94F #4FAF79 #4F55AF #AF4F85
split-complementary
#AFA94F #4F85AF #794FAF
monochromatic
#5B5829 #85803C #AFA94F #C2BE79 #D5D2A3

Accessibility & contrast

On white

2.44
#AFA94F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#AFA94F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA94F
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA94F#FFFFFF#000000##000000
##AFA94F1.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A446
Deuteranopia (green-blind)
#B8A854
Tritanopia (blue-blind)
#BA9F95
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa94f;
/* rgb */ color: rgb(175, 169, 79);
/* oklch */ color: oklch(72.1% 0.113 105.4);
Tailwind
colors: {
  custom: {
    50: '#c9c283',
    500: '#afa94f',
    950: '#000000',
  },
}
SCSS
$custom: #afa94f;
$custom-light: #c9c283;
$custom-dark: #000000;
JSON
{
  "hex": "#afa94f",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 79
  },
  "hsl": {
    "h": 56.25,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.72123,
    "c": 0.11259,
    "h": 105.4
  },
  "luminance": 0.38054
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA94F

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

Preview Lab → · Contrast checker → · Palette generator →

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