#AFA64A#AFA64A

#AFA64A is a light, moderate yellow. Relative luminance 0.369; OKLCH L 71.4% C 0.114 H 103.7°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#AFA64A
RGBrgb(175, 166, 74)
HSLhsl(55, 41%, 49%)
HSVhsv(55, 58%, 69%)
CMYKcmyk(0%, 5.1%, 57.7%, 31.4%)
CIE-LABlab(67.19, -8.74, 47.86)
CIE-LCHlch(67.19, 48.65, 100.36°)
OKLaboklab(71.41% -0.0271 0.1109)
OKLCHoklch(71.41% 0.114 103.7)
XYZxyz(32.5525, 36.8819, 11.8814)
Luminance0.3688 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA64A #4A53AF
analogous
#AF744A #AFA64A #86AF4A
triadic
#AFA64A #4AAFA6 #A64AAF
tetradic
#AFA64A #4AAF74 #4A53AF #AF4A86
square
#AFA64A #4AAF74 #4A53AF #AF4A86
split-complementary
#AFA64A #4A86AF #744AAF
monochromatic
#595426 #847D38 #AFA64A #C4BC73 #D6D19E

Accessibility & contrast

On white

2.51
#AFA64A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#AFA64A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA64A
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA64A#FFFFFF#000000##000000
##AFA64A1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A140
Deuteranopia (green-blind)
#B6A64F
Tritanopia (blue-blind)
#BB9C92
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa64a;
/* rgb */ color: rgb(175, 166, 74);
/* oklch */ color: oklch(71.4% 0.114 103.7);
Tailwind
colors: {
  custom: {
    50: '#c9c080',
    500: '#afa64a',
    950: '#000000',
  },
}
SCSS
$custom: #afa64a;
$custom-light: #c9c080;
$custom-dark: #000000;
JSON
{
  "hex": "#afa64a",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 74
  },
  "hsl": {
    "h": 54.653,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.71413,
    "c": 0.11418,
    "h": 103.7
  },
  "luminance": 0.36881
}

Semantic roles & 50–950 ramp

primary
#AFA64A
secondary
#9297C2
accent
#62D057
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA64A

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

Preview Lab → · Contrast checker → · Palette generator →

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