#AFB04A#AFB04A

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

Color values

HEX#AFB04A
RGBrgb(175, 176, 74)
HSLhsl(61, 41%, 49%)
HSVhsv(61, 58%, 69%)
CMYKcmyk(0.6%, 0%, 58%, 31%)
CIE-LABlab(69.94, -13.95, 50.94)
CIE-LCHlch(69.94, 52.81, 105.32°)
OKLaboklab(73.6% -0.0419 0.1175)
OKLCHoklch(73.6% 0.125 109.6)
XYZxyz(34.4415, 40.6599, 12.5111)
Luminance0.4066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB04A #4B4AB0
analogous
#B07E4A #AFB04A #7CB04A
triadic
#AFB04A #4AAFB0 #B04AAF
tetradic
#AFB04A #4AB07E #4B4AB0 #B04A7C
square
#AFB04A #4AB07E #4B4AB0 #B04A7C
split-complementary
#AFB04A #4A7CB0 #7E4AB0
monochromatic
#595A26 #848538 #AFB04A #C3C473 #D6D69E

Accessibility & contrast

On white

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

On black

9.13
#AFB04A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB04A
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB04A#FFFFFF#000000##000000
##AFB04A1.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA93F
Deuteranopia (green-blind)
#BEAD50
Tritanopia (blue-blind)
#BAA69A
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb04a;
/* rgb */ color: rgb(175, 176, 74);
/* oklch */ color: oklch(73.6% 0.125 109.6);
Tailwind
colors: {
  custom: {
    50: '#c9c780',
    500: '#afb04a',
    950: '#000000',
  },
}
SCSS
$custom: #afb04a;
$custom-light: #c9c780;
$custom-dark: #000000;
JSON
{
  "hex": "#afb04a",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 74
  },
  "hsl": {
    "h": 60.588,
    "s": 40.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.73601,
    "c": 0.12475,
    "h": 109.6
  },
  "luminance": 0.40659
}

Semantic roles & 50–950 ramp

primary
#AFB04A
secondary
#9393C3
accent
#57D158
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130A
muted
#82827C

Preview Lab

Preview with #AFB04A

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

Preview Lab → · Contrast checker → · Palette generator →

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