#AFA53E#AFA53E

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

Color values

HEX#AFA53E
RGBrgb(175, 165, 62)
HSLhsl(55, 48%, 46%)
HSVhsv(55, 65%, 69%)
CMYKcmyk(0%, 5.7%, 64.6%, 31.4%)
CIE-LABlab(66.80, -9.06, 52.86)
CIE-LCHlch(66.80, 53.63, 99.73°)
OKLaboklab(71.07% -0.0294 0.1199)
OKLCHoklch(71.07% 0.123 103.8)
XYZxyz(32.0050, 36.3732, 9.8914)
Luminance0.3637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA53E #3E48AF
analogous
#AF6D3E #AFA53E #81AF3E
triadic
#AFA53E #3EAFA5 #A53EAF
tetradic
#AFA53E #3EAF6D #3E48AF #AF3E81
square
#AFA53E #3EAF6D #3E48AF #AF3E81
split-complementary
#AFA53E #3E81AF #6D3EAF
monochromatic
#55501E #827A2E #AFA53E #C8BF63 #D8D190

Accessibility & contrast

On white

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

On black

8.27
#AFA53E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA53E
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA53E#FFFFFF#000000##000000
##AFA53E1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A031
Deuteranopia (green-blind)
#B6A544
Tritanopia (blue-blind)
#BC9A90
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa53e;
/* rgb */ color: rgb(175, 165, 62);
/* oklch */ color: oklch(71.1% 0.123 103.8);
Tailwind
colors: {
  custom: {
    50: '#cabf78',
    500: '#afa53e',
    950: '#000000',
  },
}
SCSS
$custom: #afa53e;
$custom-light: #cabf78;
$custom-dark: #000000;
JSON
{
  "hex": "#afa53e",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 62
  },
  "hsl": {
    "h": 54.69,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.71072,
    "c": 0.12345,
    "h": 103.8
  },
  "luminance": 0.36372
}

Semantic roles & 50–950 ramp

primary
#AFA53E
secondary
#868CC3
accent
#5CD751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA53E

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

Preview Lab → · Contrast checker → · Palette generator →

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