#AFAC4E#AFAC4E

#AFAC4E is a light, moderate yellow. Relative luminance 0.392; OKLCH L 72.8% C 0.117 H 107.3°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#AFAC4E
RGBrgb(175, 172, 78)
HSLhsl(58, 38%, 50%)
HSVhsv(58, 55%, 69%)
CMYKcmyk(0%, 1.7%, 55.4%, 31.4%)
CIE-LABlab(68.87, -11.57, 47.89)
CIE-LCHlch(68.87, 49.27, 103.58°)
OKLaboklab(72.77% -0.0347 0.1115)
OKLCHoklch(72.77% 0.117 107.3)
XYZxyz(33.8078, 39.1700, 12.9859)
Luminance0.3917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC4E #4E51AF
analogous
#AF7B4E #AFAC4E #82AF4E
triadic
#AFAC4E #4EAFAC #AC4EAF
tetradic
#AFAC4E #4EAF7B #4E51AF #AF4E82
square
#AFAC4E #4EAF7B #4E51AF #AF4E82
split-complementary
#AFAC4E #4E82AF #7B4EAF
monochromatic
#5A5928 #85823B #AFAC4E #C3C078 #D6D4A2

Accessibility & contrast

On white

2.38
#AFAC4E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#AFAC4E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC4E
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC4E#FFFFFF#000000##000000
##AFAC4E1.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A644
Deuteranopia (green-blind)
#BBAA53
Tritanopia (blue-blind)
#BAA297
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac4e;
/* rgb */ color: rgb(175, 172, 78);
/* oklch */ color: oklch(72.8% 0.117 107.3);
Tailwind
colors: {
  custom: {
    50: '#c9c483',
    500: '#afac4e',
    950: '#000000',
  },
}
SCSS
$custom: #afac4e;
$custom-light: #c9c483;
$custom-dark: #000000;
JSON
{
  "hex": "#afac4e",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 78
  },
  "hsl": {
    "h": 58.144,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.72767,
    "c": 0.11675,
    "h": 107.3
  },
  "luminance": 0.39169
}

Semantic roles & 50–950 ramp

primary
#AFAC4E
secondary
#9698C3
accent
#5DCE5A
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAC4E

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

Preview Lab → · Contrast checker → · Palette generator →

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