#AFA22E#AFA22E

#AFA22E is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.3% C 0.132 H 102.7°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#AFA22E
RGBrgb(175, 162, 46)
HSLhsl(54, 58%, 43%)
HSVhsv(54, 74%, 69%)
CMYKcmyk(0%, 7.4%, 73.7%, 31.4%)
CIE-LABlab(65.87, -8.36, 58.33)
CIE-LCHlch(65.87, 58.93, 98.15°)
OKLaboklab(70.29% -0.0291 0.1287)
OKLCHoklch(70.29% 0.132 102.7)
XYZxyz(31.0941, 35.1532, 7.7316)
Luminance0.3515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA22E #2E3BAF
analogous
#AF612E #AFA22E #7CAF2E
triadic
#AFA22E #2EAFA2 #A22EAF
tetradic
#AFA22E #2EAF61 #2E3BAF #AF2E7C
square
#AFA22E #2EAF61 #2E3BAF #AF2E7C
split-complementary
#AFA22E #2E7CAF #612EAF
monochromatic
#4E4815 #7F7521 #AFA22E #D0C24B #DCD37B

Accessibility & contrast

On white

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

On black

8.03
#AFA22E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA22E
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA22E#FFFFFF#000000##000000
##AFA22E1.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D19
Deuteranopia (green-blind)
#B5A336
Tritanopia (blue-blind)
#BC968B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa22e;
/* rgb */ color: rgb(175, 162, 46);
/* oklch */ color: oklch(70.3% 0.132 102.7);
Tailwind
colors: {
  custom: {
    50: '#cabd6f',
    500: '#afa22e',
    950: '#000000',
  },
}
SCSS
$custom: #afa22e;
$custom-light: #cabd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa22e",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 46
  },
  "hsl": {
    "h": 53.953,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.7029,
    "c": 0.13195,
    "h": 102.7
  },
  "luminance": 0.35152
}

Semantic roles & 50–950 ramp

primary
#AFA22E
secondary
#747CC5
accent
#56E246
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA22E

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

Preview Lab → · Contrast checker → · Palette generator →

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