#AFA04E#AFA04E

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

Color values

HEX#AFA04E
RGBrgb(175, 160, 78)
HSLhsl(51, 38%, 50%)
HSVhsv(51, 55%, 69%)
CMYKcmyk(0%, 8.6%, 55.4%, 31.4%)
CIE-LABlab(65.60, -5.24, 44.11)
CIE-LCHlch(65.60, 44.42, 96.77°)
OKLaboklab(70.16% -0.0166 0.1033)
OKLCHoklch(70.16% 0.105 99.1)
XYZxyz(31.6262, 34.8069, 12.2587)
Luminance0.3481 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA04E #4E5DAF
analogous
#AF704E #AFA04E #8DAF4E
triadic
#AFA04E #4EAFA0 #A04EAF
tetradic
#AFA04E #4EAF70 #4E5DAF #AF4E8D
square
#AFA04E #4EAF70 #4E5DAF #AF4E8D
split-complementary
#AFA04E #4E8DAF #704EAF
monochromatic
#5A5328 #85793B #AFA04E #C3B778 #D6CEA2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA04E#FFFFFF#000000##000000
##AFA04E1.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)
#AD9C46
Deuteranopia (green-blind)
#B2A252
Tritanopia (blue-blind)
#BB968D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa04e;
/* rgb */ color: rgb(175, 160, 78);
/* oklch */ color: oklch(70.2% 0.105 99.1);
Tailwind
colors: {
  custom: {
    50: '#c9bb82',
    500: '#afa04e',
    950: '#000000',
  },
}
SCSS
$custom: #afa04e;
$custom-light: #c9bb82;
$custom-dark: #000000;
JSON
{
  "hex": "#afa04e",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 78
  },
  "hsl": {
    "h": 50.722,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.70164,
    "c": 0.10465,
    "h": 99.1
  },
  "luminance": 0.34806
}

Semantic roles & 50–950 ramp

primary
#AFA04E
secondary
#969DC3
accent
#6CCE5A
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13110B
muted
#82807C

Preview Lab

Preview with #AFA04E

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

Preview Lab → · Contrast checker → · Palette generator →

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