#AFA722#AFA722

#AFA722 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.3% C 0.143 H 105.8°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#AFA722
RGBrgb(175, 167, 34)
HSLhsl(57, 67%, 41%)
HSVhsv(57, 81%, 69%)
CMYKcmyk(0%, 4.6%, 80.6%, 31.4%)
CIE-LABlab(67.18, -11.46, 63.46)
CIE-LCHlch(67.18, 64.49, 100.24°)
OKLaboklab(71.31% -0.0389 0.1373)
OKLCHoklch(71.31% 0.143 105.8)
XYZxyz(31.7880, 36.8681, 6.9549)
Luminance0.3687 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA722 #222AAF
analogous
#AF6022 #AFA722 #70AF22
triadic
#AFA722 #22AFA7 #A722AF
tetradic
#AFA722 #22AF60 #222AAF #AF2270
square
#AFA722 #22AF60 #222AAF #AF2270
split-complementary
#AFA722 #2270AF #6022AF
monochromatic
#49450E #7C7618 #AFA722 #D8CF36 #E2DB69

Accessibility & contrast

On white

2.51
#AFA722 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#AFA722 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA722
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA722#FFFFFF#000000##000000
##AFA7221.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A100
Deuteranopia (green-blind)
#B9A62E
Tritanopia (blue-blind)
#BC9B8F
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa722;
/* rgb */ color: rgb(175, 167, 34);
/* oklch */ color: oklch(71.3% 0.143 105.8);
Tailwind
colors: {
  custom: {
    50: '#cbc06a',
    500: '#afa722',
    950: '#000000',
  },
}
SCSS
$custom: #afa722;
$custom-light: #cbc06a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa722",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 34
  },
  "hsl": {
    "h": 56.596,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.71313,
    "c": 0.14275,
    "h": 105.8
  },
  "luminance": 0.36867
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA722

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

Preview Lab → · Contrast checker → · Palette generator →

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