#AFA53A#AFA53A

#AFA53A is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.0% C 0.127 H 104.0°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#AFA53A
RGBrgb(175, 165, 58)
HSLhsl(55, 50%, 46%)
HSVhsv(55, 67%, 69%)
CMYKcmyk(0%, 5.7%, 66.9%, 31.4%)
CIE-LABlab(66.77, -9.31, 54.52)
CIE-LCHlch(66.77, 55.31, 99.69°)
OKLaboklab(71.04% -0.0305 0.1228)
OKLCHoklch(71.04% 0.127 104)
XYZxyz(31.8993, 36.3309, 9.3344)
Luminance0.3633 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA53A #3A44AF
analogous
#AF6A3A #AFA53A #7EAF3A
triadic
#AFA53A #3AAFA5 #A53AAF
tetradic
#AFA53A #3AAF6A #3A44AF #AF3A7E
square
#AFA53A #3AAF6A #3A44AF #AF3A7E
split-complementary
#AFA53A #3A7EAF #6A3AAF
monochromatic
#534E1C #817A2B #AFA53A #C9C05D #D9D28B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA53A#FFFFFF#000000##000000
##AFA53A1.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)
#B3A02C
Deuteranopia (green-blind)
#B7A541
Tritanopia (blue-blind)
#BC9A8F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa53a;
/* rgb */ color: rgb(175, 165, 58);
/* oklch */ color: oklch(71.0% 0.127 104.0);
Tailwind
colors: {
  custom: {
    50: '#cabf76',
    500: '#afa53a',
    950: '#000000',
  },
}
SCSS
$custom: #afa53a;
$custom-light: #cabf76;
$custom-dark: #000000;
JSON
{
  "hex": "#afa53a",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 58
  },
  "hsl": {
    "h": 54.872,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.71036,
    "c": 0.12652,
    "h": 104
  },
  "luminance": 0.3633
}

Semantic roles & 50–950 ramp

primary
#AFA53A
secondary
#8287C3
accent
#5ADA4E
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA53A

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

Preview Lab → · Contrast checker → · Palette generator →

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