#AFA24C#AFA24C

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

Color values

HEX#AFA24C
RGBrgb(175, 162, 76)
HSLhsl(52, 39%, 49%)
HSVhsv(52, 57%, 69%)
CMYKcmyk(0%, 7.4%, 56.6%, 31.4%)
CIE-LABlab(66.12, -6.47, 45.69)
CIE-LCHlch(66.12, 46.14, 98.06°)
OKLaboklab(70.57% -0.0203 0.1065)
OKLCHoklch(70.57% 0.108 100.8)
XYZxyz(31.9051, 35.4776, 12.0033)
Luminance0.3548 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA24C #4C59AF
analogous
#AF714C #AFA24C #8BAF4C
triadic
#AFA24C #4CAFA2 #A24CAF
tetradic
#AFA24C #4CAF71 #4C59AF #AF4C8B
square
#AFA24C #4CAF71 #4C59AF #AF4C8B
split-complementary
#AFA24C #4C8BAF #714CAF
monochromatic
#5A5327 #847B39 #AFA24C #C3B975 #D6CFA0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA24C#FFFFFF#000000##000000
##AFA24C1.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)
#AF9E44
Deuteranopia (green-blind)
#B3A350
Tritanopia (blue-blind)
#BB988F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa24c;
/* rgb */ color: rgb(175, 162, 76);
/* oklch */ color: oklch(70.6% 0.108 100.8);
Tailwind
colors: {
  custom: {
    50: '#c9bd81',
    500: '#afa24c',
    950: '#000000',
  },
}
SCSS
$custom: #afa24c;
$custom-light: #c9bd81;
$custom-dark: #000000;
JSON
{
  "hex": "#afa24c",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 76
  },
  "hsl": {
    "h": 52.121,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.7057,
    "c": 0.10843,
    "h": 100.8
  },
  "luminance": 0.35476
}

Semantic roles & 50–950 ramp

primary
#AFA24C
secondary
#949AC2
accent
#68CF58
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA24C

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

Preview Lab → · Contrast checker → · Palette generator →

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