#AFA72F#AFA72F

#AFA72F is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.4% C 0.136 H 105.5°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#AFA72F
RGBrgb(175, 167, 47)
HSLhsl(56, 58%, 44%)
HSVhsv(56, 73%, 69%)
CMYKcmyk(0%, 4.6%, 73.1%, 31.4%)
CIE-LABlab(67.25, -10.94, 59.29)
CIE-LCHlch(67.25, 60.29, 100.45°)
OKLaboklab(71.39% -0.0363 0.1309)
OKLCHoklch(71.39% 0.136 105.5)
XYZxyz(32.0123, 36.9578, 8.1361)
Luminance0.3696 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA72F #2F37AF
analogous
#AF672F #AFA72F #77AF2F
triadic
#AFA72F #2FAFA7 #A72FAF
tetradic
#AFA72F #2FAF67 #2F37AF #AF2F77
square
#AFA72F #2FAF67 #2F37AF #AF2F77
split-complementary
#AFA72F #2F77AF #672FAF
monochromatic
#4F4B15 #7F7922 #AFA72F #CFC74C #DCD67C

Accessibility & contrast

On white

2.50
#AFA72F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#AFA72F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA72F
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA72F#FFFFFF#000000##000000
##AFA72F1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa72f;
/* rgb */ color: rgb(175, 167, 47);
/* oklch */ color: oklch(71.4% 0.136 105.5);
Tailwind
colors: {
  custom: {
    50: '#cac070',
    500: '#afa72f',
    950: '#000000',
  },
}
SCSS
$custom: #afa72f;
$custom-light: #cac070;
$custom-dark: #000000;
JSON
{
  "hex": "#afa72f",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 47
  },
  "hsl": {
    "h": 56.25,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.71388,
    "c": 0.13585,
    "h": 105.5
  },
  "luminance": 0.36957
}

Semantic roles & 50–950 ramp

primary
#AFA72F
secondary
#757AC4
accent
#51E147
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA72F

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

Preview Lab → · Contrast checker → · Palette generator →

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