#AFA53F#AFA53F

#AFA53F is a light, vivid yellow. Relative luminance 0.364; OKLCH L 71.1% C 0.123 H 103.7°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#AFA53F
RGBrgb(175, 165, 63)
HSLhsl(55, 47%, 47%)
HSVhsv(55, 64%, 69%)
CMYKcmyk(0%, 5.7%, 64%, 31.4%)
CIE-LABlab(66.81, -9.00, 52.43)
CIE-LCHlch(66.81, 53.20, 99.74°)
OKLaboklab(71.08% -0.0291 0.1192)
OKLCHoklch(71.08% 0.123 103.7)
XYZxyz(32.0327, 36.3843, 10.0372)
Luminance0.3638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA53F #3F49AF
analogous
#AF6D3F #AFA53F #81AF3F
triadic
#AFA53F #3FAFA5 #A53FAF
tetradic
#AFA53F #3FAF6D #3F49AF #AF3F81
square
#AFA53F #3FAF6D #3F49AF #AF3F81
split-complementary
#AFA53F #3F81AF #6D3FAF
monochromatic
#55501F #827B2F #AFA53F #C7BE64 #D7D191

Accessibility & contrast

On white

2.54
#AFA53F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#AFA53F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA53F
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA53F#FFFFFF#000000##000000
##AFA53F1.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A033
Deuteranopia (green-blind)
#B6A545
Tritanopia (blue-blind)
#BC9A90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa53f;
/* rgb */ color: rgb(175, 165, 63);
/* oklch */ color: oklch(71.1% 0.123 103.7);
Tailwind
colors: {
  custom: {
    50: '#cabf79',
    500: '#afa53f',
    950: '#000000',
  },
}
SCSS
$custom: #afa53f;
$custom-light: #cabf79;
$custom-dark: #000000;
JSON
{
  "hex": "#afa53f",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 63
  },
  "hsl": {
    "h": 54.643,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.71081,
    "c": 0.12266,
    "h": 103.7
  },
  "luminance": 0.36383
}

Semantic roles & 50–950 ramp

primary
#AFA53F
secondary
#878DC3
accent
#5DD751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA53F

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

Preview Lab → · Contrast checker → · Palette generator →

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