#AFA52F#AFA52F

#AFA52F is a light, vivid yellow. Relative luminance 0.362; OKLCH L 71.0% C 0.134 H 104.4°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#AFA52F
RGBrgb(175, 165, 47)
HSLhsl(55, 58%, 44%)
HSVhsv(55, 73%, 69%)
CMYKcmyk(0%, 5.7%, 73.1%, 31.4%)
CIE-LABlab(66.70, -9.89, 58.76)
CIE-LCHlch(66.70, 59.59, 99.55°)
OKLaboklab(70.95% -0.0333 0.1298)
OKLCHoklch(70.95% 0.134 104.4)
XYZxyz(31.6488, 36.2307, 8.0149)
Luminance0.3623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA52F #2F39AF
analogous
#AF652F #AFA52F #79AF2F
triadic
#AFA52F #2FAFA5 #A52FAF
tetradic
#AFA52F #2FAF65 #2F39AF #AF2F79
square
#AFA52F #2FAF65 #2F39AF #AF2F79
split-complementary
#AFA52F #2F79AF #652FAF
monochromatic
#4F4A15 #7F7822 #AFA52F #CFC54C #DCD47C

Accessibility & contrast

On white

2.55
#AFA52F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#AFA52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA52F
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA52F#FFFFFF#000000##000000
##AFA52F1.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F1A
Deuteranopia (green-blind)
#B7A537
Tritanopia (blue-blind)
#BC998E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa52f;
/* rgb */ color: rgb(175, 165, 47);
/* oklch */ color: oklch(71.0% 0.134 104.4);
Tailwind
colors: {
  custom: {
    50: '#cabf70',
    500: '#afa52f',
    950: '#000000',
  },
}
SCSS
$custom: #afa52f;
$custom-light: #cabf70;
$custom-dark: #000000;
JSON
{
  "hex": "#afa52f",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 55.313,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.70951,
    "c": 0.134,
    "h": 104.4
  },
  "luminance": 0.36229
}

Semantic roles & 50–950 ramp

primary
#AFA52F
secondary
#757BC4
accent
#53E147
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA52F

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

Preview Lab → · Contrast checker → · Palette generator →

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