#AFA922#AFA922

#AFA922 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 71.8% C 0.145 H 106.8°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#AFA922
RGBrgb(175, 169, 34)
HSLhsl(57, 67%, 41%)
HSVhsv(57, 81%, 69%)
CMYKcmyk(0%, 3.4%, 80.6%, 31.4%)
CIE-LABlab(67.73, -12.50, 63.94)
CIE-LCHlch(67.73, 65.15, 101.06°)
OKLaboklab(71.75% -0.0418 0.1384)
OKLCHoklch(71.75% 0.145 106.8)
XYZxyz(32.1573, 37.6066, 7.0780)
Luminance0.3760 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA922 #2228AF
analogous
#AF6222 #AFA922 #6EAF22
triadic
#AFA922 #22AFA9 #A922AF
tetradic
#AFA922 #22AF62 #2228AF #AF226E
square
#AFA922 #22AF62 #2228AF #AF226E
split-complementary
#AFA922 #226EAF #6222AF
monochromatic
#49460E #7C7818 #AFA922 #D8D136 #E2DD69

Accessibility & contrast

On white

2.46
#AFA922 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#AFA922 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA922
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA922#FFFFFF#000000##000000
##AFA9221.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#BBA72E
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa922;
/* rgb */ color: rgb(175, 169, 34);
/* oklch */ color: oklch(71.8% 0.145 106.8);
Tailwind
colors: {
  custom: {
    50: '#cbc26b',
    500: '#afa922',
    950: '#000000',
  },
}
SCSS
$custom: #afa922;
$custom-light: #cbc26b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa922",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 34
  },
  "hsl": {
    "h": 57.447,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.71753,
    "c": 0.14456,
    "h": 106.8
  },
  "luminance": 0.37605
}

Semantic roles & 50–950 ramp

primary
#AFA922
secondary
#6569C8
accent
#45EA3D
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA922

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

Preview Lab → · Contrast checker → · Palette generator →

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