#AFA04C#AFA04C

#AFA04C is a light, moderate yellow. Relative luminance 0.348; OKLCH L 70.1% C 0.107 H 99.3°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#AFA04C
RGBrgb(175, 160, 76)
HSLhsl(51, 39%, 49%)
HSVhsv(51, 57%, 69%)
CMYKcmyk(0%, 8.6%, 56.6%, 31.4%)
CIE-LABlab(65.58, -5.40, 45.06)
CIE-LCHlch(65.58, 45.38, 96.84°)
OKLaboklab(70.14% -0.0173 0.1052)
OKLCHoklch(70.14% 0.107 99.3)
XYZxyz(31.5556, 34.7786, 11.8868)
Luminance0.3478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA04C #4C5BAF
analogous
#AF6F4C #AFA04C #8DAF4C
triadic
#AFA04C #4CAFA0 #A04CAF
tetradic
#AFA04C #4CAF6F #4C5BAF #AF4C8D
square
#AFA04C #4CAF6F #4C5BAF #AF4C8D
split-complementary
#AFA04C #4C8DAF #6F4CAF
monochromatic
#5A5227 #847939 #AFA04C #C3B775 #D6CDA0

Accessibility & contrast

On white

2.64
#AFA04C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#AFA04C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA04C
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA04C#FFFFFF#000000##000000
##AFA04C1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9C44
Deuteranopia (green-blind)
#B2A250
Tritanopia (blue-blind)
#BB968D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa04c;
/* rgb */ color: rgb(175, 160, 76);
/* oklch */ color: oklch(70.1% 0.107 99.3);
Tailwind
colors: {
  custom: {
    50: '#c9bb81',
    500: '#afa04c',
    950: '#000000',
  },
}
SCSS
$custom: #afa04c;
$custom-light: #c9bb81;
$custom-dark: #000000;
JSON
{
  "hex": "#afa04c",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 76
  },
  "hsl": {
    "h": 50.909,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.7014,
    "c": 0.10656,
    "h": 99.3
  },
  "luminance": 0.34777
}

Semantic roles & 50–950 ramp

primary
#AFA04C
secondary
#949BC2
accent
#6ACF58
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13110A
muted
#82807C

Preview Lab

Preview with #AFA04C

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

Preview Lab → · Contrast checker → · Palette generator →

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