#AFA04F#AFA04F

#AFA04F is a light, moderate yellow. Relative luminance 0.348; OKLCH L 70.2% C 0.104 H 99.0°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#AFA04F
RGBrgb(175, 160, 79)
HSLhsl(51, 38%, 50%)
HSVhsv(51, 55%, 69%)
CMYKcmyk(0%, 8.6%, 54.9%, 31.4%)
CIE-LABlab(65.61, -5.16, 43.63)
CIE-LCHlch(65.61, 43.94, 96.74°)
OKLaboklab(70.18% -0.0162 0.1024)
OKLCHoklch(70.18% 0.104 99)
XYZxyz(31.6624, 34.8213, 12.4490)
Luminance0.3482 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA04F #4F5EAF
analogous
#AF704F #AFA04F #8EAF4F
triadic
#AFA04F #4FAFA0 #A04FAF
tetradic
#AFA04F #4FAF70 #4F5EAF #AF4F8E
square
#AFA04F #4FAF70 #4F5EAF #AF4F8E
split-complementary
#AFA04F #4F8EAF #704FAF
monochromatic
#5B5329 #85793C #AFA04F #C2B779 #D5CEA3

Accessibility & contrast

On white

2.64
#AFA04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#AFA04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA04F
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA04F#FFFFFF#000000##000000
##AFA04F1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9C47
Deuteranopia (green-blind)
#B1A253
Tritanopia (blue-blind)
#BB968E
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa04f;
/* rgb */ color: rgb(175, 160, 79);
/* oklch */ color: oklch(70.2% 0.104 99.0);
Tailwind
colors: {
  custom: {
    50: '#c9bb83',
    500: '#afa04f',
    950: '#000000',
  },
}
SCSS
$custom: #afa04f;
$custom-light: #c9bb83;
$custom-dark: #000000;
JSON
{
  "hex": "#afa04f",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 79
  },
  "hsl": {
    "h": 50.625,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.70177,
    "c": 0.10368,
    "h": 99
  },
  "luminance": 0.3482
}

Semantic roles & 50–950 ramp

primary
#AFA04F
secondary
#979EC3
accent
#6CCE5A
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13110B
muted
#82807C

Preview Lab

Preview with #AFA04F

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

Preview Lab → · Contrast checker → · Palette generator →

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