#AFA822#AFA822

#AFA822 is a light, vivid yellow. Relative luminance 0.372; OKLCH L 71.5% C 0.144 H 106.3°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA822
RGBrgb(175, 168, 34)
HSLhsl(57, 67%, 41%)
HSVhsv(57, 81%, 69%)
CMYKcmyk(0%, 4%, 80.6%, 31.4%)
CIE-LABlab(67.45, -11.98, 63.70)
CIE-LCHlch(67.45, 64.82, 100.65°)
OKLaboklab(71.53% -0.0404 0.1379)
OKLCHoklch(71.53% 0.144 106.3)
XYZxyz(31.9719, 37.2359, 7.0162)
Luminance0.3724 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA822 #2229AF
analogous
#AF6122 #AFA822 #6FAF22
triadic
#AFA822 #22AFA8 #A822AF
tetradic
#AFA822 #22AF61 #2229AF #AF226F
square
#AFA822 #22AF61 #2229AF #AF226F
split-complementary
#AFA822 #226FAF #6122AF
monochromatic
#49460E #7C7718 #AFA822 #D8D036 #E2DC69

Accessibility & contrast

On white

2.49
#AFA822 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#AFA822 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA822
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA822#FFFFFF#000000##000000
##AFA8221.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A100
Deuteranopia (green-blind)
#BAA72E
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa822;
/* rgb */ color: rgb(175, 168, 34);
/* oklch */ color: oklch(71.5% 0.144 106.3);
Tailwind
colors: {
  custom: {
    50: '#cbc16a',
    500: '#afa822',
    950: '#000000',
  },
}
SCSS
$custom: #afa822;
$custom-light: #cbc16a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa822",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 34
  },
  "hsl": {
    "h": 57.021,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.71533,
    "c": 0.14365,
    "h": 106.3
  },
  "luminance": 0.37235
}

Semantic roles & 50–950 ramp

primary
#AFA822
secondary
#656AC8
accent
#46EA3D
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA822

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

Preview Lab → · Contrast checker → · Palette generator →

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