#AFA24F#AFA24F

#AFA24F is a light, moderate yellow. Relative luminance 0.355; OKLCH L 70.6% C 0.106 H 100.5°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#AFA24F
RGBrgb(175, 162, 79)
HSLhsl(52, 38%, 50%)
HSVhsv(52, 55%, 69%)
CMYKcmyk(0%, 7.4%, 54.9%, 31.4%)
CIE-LABlab(66.15, -6.22, 44.27)
CIE-LCHlch(66.15, 44.70, 98.00°)
OKLaboklab(70.61% -0.0193 0.1038)
OKLCHoklch(70.61% 0.106 100.5)
XYZxyz(32.0119, 35.5203, 12.5655)
Luminance0.3552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA24F #4F5CAF
analogous
#AF724F #AFA24F #8CAF4F
triadic
#AFA24F #4FAFA2 #A24FAF
tetradic
#AFA24F #4FAF72 #4F5CAF #AF4F8C
square
#AFA24F #4FAF72 #4F5CAF #AF4F8C
split-complementary
#AFA24F #4F8CAF #724FAF
monochromatic
#5B5429 #857B3C #AFA24F #C2B879 #D5CFA3

Accessibility & contrast

On white

2.59
#AFA24F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#AFA24F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA24F
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA24F#FFFFFF#000000##000000
##AFA24F1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9E47
Deuteranopia (green-blind)
#B3A353
Tritanopia (blue-blind)
#BB988F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa24f;
/* rgb */ color: rgb(175, 162, 79);
/* oklch */ color: oklch(70.6% 0.106 100.5);
Tailwind
colors: {
  custom: {
    50: '#c9bd83',
    500: '#afa24f',
    950: '#000000',
  },
}
SCSS
$custom: #afa24f;
$custom-light: #c9bd83;
$custom-dark: #000000;
JSON
{
  "hex": "#afa24f",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 79
  },
  "hsl": {
    "h": 51.875,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.70607,
    "c": 0.10555,
    "h": 100.5
  },
  "luminance": 0.35519
}

Semantic roles & 50–950 ramp

primary
#AFA24F
secondary
#979DC3
accent
#6ACE5A
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA24F

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

Preview Lab → · Contrast checker → · Palette generator →

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