#AFB04F#AFB04F

#AFB04F is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.7% C 0.120 H 109.6°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#AFB04F
RGBrgb(175, 176, 79)
HSLhsl(61, 38%, 50%)
HSVhsv(61, 55%, 69%)
CMYKcmyk(0.6%, 0%, 55.1%, 31%)
CIE-LABlab(69.99, -13.56, 48.69)
CIE-LCHlch(69.99, 50.54, 105.56°)
OKLaboklab(73.66% -0.0403 0.1133)
OKLCHoklch(73.66% 0.12 109.6)
XYZxyz(34.6167, 40.7300, 13.4338)
Luminance0.4073 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB04F #504FB0
analogous
#B0814F #AFB04F #7EB04F
triadic
#AFB04F #4FAFB0 #B04FAF
tetradic
#AFB04F #4FB081 #504FB0 #B04F7E
square
#AFB04F #4FB081 #504FB0 #B04F7E
split-complementary
#AFB04F #4F7EB0 #814FB0
monochromatic
#5B5C29 #85863C #AFB04F #C2C379 #D5D6A3

Accessibility & contrast

On white

2.30
#AFB04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.15
#AFB04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB04F
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB04F#FFFFFF#000000##000000
##AFB04F1.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA945
Deuteranopia (green-blind)
#BEAD54
Tritanopia (blue-blind)
#BAA69B
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb04f;
/* rgb */ color: rgb(175, 176, 79);
/* oklch */ color: oklch(73.7% 0.120 109.6);
Tailwind
colors: {
  custom: {
    50: '#c9c784',
    500: '#afb04f',
    950: '#000000',
  },
}
SCSS
$custom: #afb04f;
$custom-light: #c9c784;
$custom-dark: #000000;
JSON
{
  "hex": "#afb04f",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 79
  },
  "hsl": {
    "h": 60.619,
    "s": 38.039,
    "l": 50
  },
  "oklch": {
    "l": 0.73656,
    "c": 0.12024,
    "h": 109.6
  },
  "luminance": 0.40729
}

Semantic roles & 50–950 ramp

primary
#AFB04F
secondary
#9898C3
accent
#5ACE5B
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB04F

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

Preview Lab → · Contrast checker → · Palette generator →

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