#AFB64F#AFB64F

#AFB64F is a light, vivid yellow. Relative luminance 0.431; OKLCH L 75.0% C 0.127 H 112.7°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#AFB64F
RGBrgb(175, 182, 79)
HSLhsl(64, 41%, 51%)
HSVhsv(64, 57%, 71%)
CMYKcmyk(3.8%, 0%, 56.6%, 28.6%)
CIE-LABlab(71.65, -16.63, 50.57)
CIE-LCHlch(71.65, 53.23, 108.20°)
OKLaboklab(74.98% -0.049 0.1173)
OKLCHoklch(74.98% 0.127 112.7)
XYZxyz(35.8192, 43.1351, 13.8346)
Luminance0.4313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB64F #564FB6
analogous
#B6894F #AFB64F #7BB64F
triadic
#AFB64F #4FAFB6 #B64FAF
tetradic
#AFB64F #4FB689 #564FB6 #B64F7B
square
#AFB64F #4FB689 #564FB6 #B64F7B
split-complementary
#AFB64F #4F7BB6 #894FB6
monochromatic
#5E6229 #888D3B #AFB64F #C3C87A #D6DAA6

Accessibility & contrast

On white

2.18
#AFB64F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.63
#AFB64F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB64F
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB64F#FFFFFF#000000##000000
##AFB64F1.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AE44
Deuteranopia (green-blind)
#C2B155
Tritanopia (blue-blind)
#BAACA0
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb64f;
/* rgb */ color: rgb(175, 182, 79);
/* oklch */ color: oklch(75.0% 0.127 112.7);
Tailwind
colors: {
  custom: {
    50: '#c9cb84',
    500: '#afb64f',
    950: '#000000',
  },
}
SCSS
$custom: #afb64f;
$custom-light: #c9cb84;
$custom-dark: #000000;
JSON
{
  "hex": "#afb64f",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 79
  },
  "hsl": {
    "h": 64.078,
    "s": 41.365,
    "l": 51.176
  },
  "oklch": {
    "l": 0.74982,
    "c": 0.12714,
    "h": 112.7
  },
  "luminance": 0.43134
}

Semantic roles & 50–950 ramp

primary
#AFB64F
secondary
#9D9AC7
accent
#57D15F
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB64F

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

Preview Lab → · Contrast checker → · Palette generator →

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