#AFA24D#AFA24D

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

Color values

HEX#AFA24D
RGBrgb(175, 162, 77)
HSLhsl(52, 39%, 49%)
HSVhsv(52, 56%, 69%)
CMYKcmyk(0%, 7.4%, 56%, 31.4%)
CIE-LABlab(66.13, -6.39, 45.22)
CIE-LCHlch(66.13, 45.66, 98.04°)
OKLaboklab(70.58% -0.02 0.1056)
OKLCHoklch(70.58% 0.107 100.7)
XYZxyz(31.9402, 35.4917, 12.1879)
Luminance0.3549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA24D #4D5AAF
analogous
#AF714D #AFA24D #8BAF4D
triadic
#AFA24D #4DAFA2 #A24DAF
tetradic
#AFA24D #4DAF71 #4D5AAF #AF4D8B
square
#AFA24D #4DAF71 #4D5AAF #AF4D8B
split-complementary
#AFA24D #4D8BAF #714DAF
monochromatic
#5A5328 #857B3A #AFA24D #C3B976 #D6CFA1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA24D#FFFFFF#000000##000000
##AFA24D1.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)
#AF9E45
Deuteranopia (green-blind)
#B3A351
Tritanopia (blue-blind)
#BB988F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa24d;
/* rgb */ color: rgb(175, 162, 77);
/* oklch */ color: oklch(70.6% 0.107 100.7);
Tailwind
colors: {
  custom: {
    50: '#c9bd81',
    500: '#afa24d',
    950: '#000000',
  },
}
SCSS
$custom: #afa24d;
$custom-light: #c9bd81;
$custom-dark: #000000;
JSON
{
  "hex": "#afa24d",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 77
  },
  "hsl": {
    "h": 52.041,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.70582,
    "c": 0.10748,
    "h": 100.7
  },
  "luminance": 0.3549
}

Semantic roles & 50–950 ramp

primary
#AFA24D
secondary
#959BC3
accent
#69CF59
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA24D

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

Preview Lab → · Contrast checker → · Palette generator →

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