#AFA64C#AFA64C

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

Color values

HEX#AFA64C
RGBrgb(175, 166, 76)
HSLhsl(55, 39%, 49%)
HSVhsv(55, 57%, 69%)
CMYKcmyk(0%, 5.1%, 56.6%, 31.4%)
CIE-LABlab(67.21, -8.59, 46.93)
CIE-LCHlch(67.21, 47.71, 100.37°)
OKLaboklab(71.44% -0.0264 0.1092)
OKLCHoklch(71.44% 0.112 103.6)
XYZxyz(32.6210, 36.9093, 12.2420)
Luminance0.3691 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA64C #4C55AF
analogous
#AF754C #AFA64C #87AF4C
triadic
#AFA64C #4CAFA6 #A64CAF
tetradic
#AFA64C #4CAF75 #4C55AF #AF4C87
square
#AFA64C #4CAF75 #4C55AF #AF4C87
split-complementary
#AFA64C #4C87AF #754CAF
monochromatic
#5A5527 #847E39 #AFA64C #C3BC75 #D6D1A0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA64C#FFFFFF#000000##000000
##AFA64C1.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)
#B3A143
Deuteranopia (green-blind)
#B6A651
Tritanopia (blue-blind)
#BB9C92
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa64c;
/* rgb */ color: rgb(175, 166, 76);
/* oklch */ color: oklch(71.4% 0.112 103.6);
Tailwind
colors: {
  custom: {
    50: '#c9c081',
    500: '#afa64c',
    950: '#000000',
  },
}
SCSS
$custom: #afa64c;
$custom-light: #c9c081;
$custom-dark: #000000;
JSON
{
  "hex": "#afa64c",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 76
  },
  "hsl": {
    "h": 54.545,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.71436,
    "c": 0.11234,
    "h": 103.6
  },
  "luminance": 0.36908
}

Semantic roles & 50–950 ramp

primary
#AFA64C
secondary
#9499C2
accent
#63CF58
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA64C

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

Preview Lab → · Contrast checker → · Palette generator →

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