#AFAC3F#AFAC3F

#AFAC3F is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.6% C 0.130 H 107.7°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#AFAC3F
RGBrgb(175, 172, 63)
HSLhsl(58, 47%, 47%)
HSVhsv(58, 64%, 69%)
CMYKcmyk(0%, 1.7%, 64%, 31.4%)
CIE-LABlab(68.74, -12.65, 54.47)
CIE-LCHlch(68.74, 55.92, 103.08°)
OKLaboklab(72.61% -0.0394 0.1235)
OKLCHoklch(72.61% 0.13 107.7)
XYZxyz(33.3300, 38.9789, 10.4696)
Luminance0.3898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC3F #3F42AF
analogous
#AF743F #AFAC3F #7AAF3F
triadic
#AFAC3F #3FAFAC #AC3FAF
tetradic
#AFAC3F #3FAF74 #3F42AF #AF3F7A
square
#AFAC3F #3FAF74 #3F42AF #AF3F7A
split-complementary
#AFAC3F #3F7AAF #743FAF
monochromatic
#55541F #82802F #AFAC3F #C7C564 #D7D691

Accessibility & contrast

On white

2.39
#AFAC3F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#AFAC3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC3F
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC3F#FFFFFF#000000##000000
##AFAC3F1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA531
Deuteranopia (green-blind)
#BCAA46
Tritanopia (blue-blind)
#BBA195
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac3f;
/* rgb */ color: rgb(175, 172, 63);
/* oklch */ color: oklch(72.6% 0.130 107.7);
Tailwind
colors: {
  custom: {
    50: '#cac479',
    500: '#afac3f',
    950: '#000000',
  },
}
SCSS
$custom: #afac3f;
$custom-light: #cac479;
$custom-dark: #000000;
JSON
{
  "hex": "#afac3f",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 63
  },
  "hsl": {
    "h": 58.393,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.72612,
    "c": 0.12961,
    "h": 107.7
  },
  "luminance": 0.38978
}

Semantic roles & 50–950 ramp

primary
#AFAC3F
secondary
#8789C3
accent
#55D751
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAC3F

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

Preview Lab → · Contrast checker → · Palette generator →

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