#AFA24B#AFA24B

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

Color values

HEX#AFA24B
RGBrgb(175, 162, 75)
HSLhsl(52, 40%, 49%)
HSVhsv(52, 57%, 69%)
CMYKcmyk(0%, 7.4%, 57.1%, 31.4%)
CIE-LABlab(66.11, -6.55, 46.15)
CIE-LCHlch(66.11, 46.62, 98.08°)
OKLaboklab(70.56% -0.0207 0.1074)
OKLCHoklch(70.56% 0.109 100.9)
XYZxyz(31.8706, 35.4638, 11.8217)
Luminance0.3546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA24B #4B58AF
analogous
#AF704B #AFA24B #8AAF4B
triadic
#AFA24B #4BAFA2 #A24BAF
tetradic
#AFA24B #4BAF70 #4B58AF #AF4B8A
square
#AFA24B #4BAF70 #4B58AF #AF4B8A
split-complementary
#AFA24B #4B8AAF #704BAF
monochromatic
#595326 #847A39 #AFA24B #C3B974 #D6CF9F

Accessibility & contrast

On white

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

On black

8.09
#AFA24B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA24B
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA24B#FFFFFF#000000##000000
##AFA24B1.002.598.098.09
#FFFFFF2.591.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa24b;
/* rgb */ color: rgb(175, 162, 75);
/* oklch */ color: oklch(70.6% 0.109 100.9);
Tailwind
colors: {
  custom: {
    50: '#c9bd80',
    500: '#afa24b',
    950: '#000000',
  },
}
SCSS
$custom: #afa24b;
$custom-light: #c9bd80;
$custom-dark: #000000;
JSON
{
  "hex": "#afa24b",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 75
  },
  "hsl": {
    "h": 52.2,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.70558,
    "c": 0.10936,
    "h": 100.9
  },
  "luminance": 0.35463
}

Semantic roles & 50–950 ramp

primary
#AFA24B
secondary
#9399C2
accent
#68D058
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA24B

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

Preview Lab → · Contrast checker → · Palette generator →

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