#AFA224#AFA224

#AFA224 is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.2% C 0.137 H 103.1°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#AFA224
RGBrgb(175, 162, 36)
HSLhsl(54, 66%, 41%)
HSVhsv(54, 79%, 69%)
CMYKcmyk(0%, 7.4%, 79.4%, 31.4%)
CIE-LABlab(65.81, -8.77, 61.66)
CIE-LCHlch(65.81, 62.28, 98.09°)
OKLaboklab(70.23% -0.0312 0.1339)
OKLCHoklch(70.23% 0.137 103.1)
XYZxyz(30.9194, 35.0833, 6.8118)
Luminance0.3508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA224 #2431AF
analogous
#AF5C24 #AFA224 #77AF24
triadic
#AFA224 #24AFA2 #A224AF
tetradic
#AFA224 #24AF5C #2431AF #AF2477
square
#AFA224 #24AF5C #2431AF #AF2477
split-complementary
#AFA224 #2477AF #5C24AF
monochromatic
#49440F #7C731A #AFA224 #D6C83A #E1D66D

Accessibility & contrast

On white

2.62
#AFA224 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#AFA224 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA224
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA224#FFFFFF#000000##000000
##AFA2241.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D00
Deuteranopia (green-blind)
#B5A32E
Tritanopia (blue-blind)
#BD968B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa224;
/* rgb */ color: rgb(175, 162, 36);
/* oklch */ color: oklch(70.2% 0.137 103.1);
Tailwind
colors: {
  custom: {
    50: '#cbbd6a',
    500: '#afa224',
    950: '#000000',
  },
}
SCSS
$custom: #afa224;
$custom-light: #cbbd6a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa224",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 36
  },
  "hsl": {
    "h": 54.388,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.7023,
    "c": 0.13745,
    "h": 103.1
  },
  "luminance": 0.35082
}

Semantic roles & 50–950 ramp

primary
#AFA224
secondary
#6871C7
accent
#4FE93F
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA224

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

Preview Lab → · Contrast checker → · Palette generator →

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