#AFA622#AFA622

#AFA622 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.1% C 0.142 H 105.3°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA622
RGBrgb(175, 166, 34)
HSLhsl(56, 67%, 41%)
HSVhsv(56, 81%, 69%)
CMYKcmyk(0%, 5.1%, 80.6%, 31.4%)
CIE-LABlab(66.90, -10.94, 63.22)
CIE-LCHlch(66.90, 64.16, 99.82°)
OKLaboklab(71.09% -0.0375 0.1368)
OKLCHoklch(71.09% 0.142 105.3)
XYZxyz(31.6056, 36.5032, 6.8941)
Luminance0.3650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA622 #222BAF
analogous
#AF5F22 #AFA622 #71AF22
triadic
#AFA622 #22AFA6 #A622AF
tetradic
#AFA622 #22AF5F #222BAF #AF2271
square
#AFA622 #22AF5F #222BAF #AF2271
split-complementary
#AFA622 #2271AF #5F22AF
monochromatic
#49450E #7C7518 #AFA622 #D8CE36 #E2DA69

Accessibility & contrast

On white

2.53
#AFA622 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#AFA622 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA622
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA622#FFFFFF#000000##000000
##AFA6221.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A000
Deuteranopia (green-blind)
#B8A52E
Tritanopia (blue-blind)
#BD9A8E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa622;
/* rgb */ color: rgb(175, 166, 34);
/* oklch */ color: oklch(71.1% 0.142 105.3);
Tailwind
colors: {
  custom: {
    50: '#cbc06a',
    500: '#afa622',
    950: '#000000',
  },
}
SCSS
$custom: #afa622;
$custom-light: #cbc06a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa622",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 34
  },
  "hsl": {
    "h": 56.17,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.71094,
    "c": 0.14186,
    "h": 105.3
  },
  "luminance": 0.36502
}

Semantic roles & 50–950 ramp

primary
#AFA622
secondary
#656BC8
accent
#48EA3D
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA622

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

Preview Lab → · Contrast checker → · Palette generator →

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