#AFAC4A#AFAC4A

#AFAC4A is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.7% C 0.120 H 107.4°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#AFAC4A
RGBrgb(175, 172, 74)
HSLhsl(58, 41%, 49%)
HSVhsv(58, 58%, 69%)
CMYKcmyk(0%, 1.7%, 57.7%, 31.4%)
CIE-LABlab(68.83, -11.88, 49.71)
CIE-LCHlch(68.83, 51.11, 103.45°)
OKLaboklab(72.72% -0.036 0.1149)
OKLCHoklch(72.72% 0.12 107.4)
XYZxyz(33.6688, 39.1144, 12.2535)
Luminance0.3911 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC4A #4A4DAF
analogous
#AF7A4A #AFAC4A #80AF4A
triadic
#AFAC4A #4AAFAC #AC4AAF
tetradic
#AFAC4A #4AAF7A #4A4DAF #AF4A80
square
#AFAC4A #4AAF7A #4A4DAF #AF4A80
split-complementary
#AFAC4A #4A80AF #7A4AAF
monochromatic
#595726 #848238 #AFAC4A #C4C173 #D6D49E

Accessibility & contrast

On white

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

On black

8.82
#AFAC4A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC4A
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC4A#FFFFFF#000000##000000
##AFAC4A1.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A640
Deuteranopia (green-blind)
#BBAA4F
Tritanopia (blue-blind)
#BBA297
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac4a;
/* rgb */ color: rgb(175, 172, 74);
/* oklch */ color: oklch(72.7% 0.120 107.4);
Tailwind
colors: {
  custom: {
    50: '#c9c480',
    500: '#afac4a',
    950: '#000000',
  },
}
SCSS
$custom: #afac4a;
$custom-light: #c9c480;
$custom-dark: #000000;
JSON
{
  "hex": "#afac4a",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 74
  },
  "hsl": {
    "h": 58.218,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.72722,
    "c": 0.1204,
    "h": 107.4
  },
  "luminance": 0.39113
}

Semantic roles & 50–950 ramp

primary
#AFAC4A
secondary
#9294C2
accent
#5BD057
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFAC4A

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

Preview Lab → · Contrast checker → · Palette generator →

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