#AFB929#AFB929

#AFB929 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.3% C 0.157 H 113.7°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#AFB929
RGBrgb(175, 185, 41)
HSLhsl(64, 64%, 44%)
HSVhsv(64, 78%, 73%)
CMYKcmyk(5.4%, 0%, 77.8%, 27.5%)
CIE-LABlab(72.21, -20.37, 65.88)
CIE-LCHlch(72.21, 68.96, 107.18°)
OKLaboklab(75.35% -0.0631 0.1438)
OKLCHoklch(75.35% 0.157 113.7)
XYZxyz(35.4295, 43.9727, 8.7186)
Luminance0.4397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB929 #3329B9
analogous
#B97B29 #AFB929 #67B929
triadic
#AFB929 #29AFB9 #B929AF
tetradic
#AFB929 #29B97B #3329B9 #B92967
square
#AFB929 #29B97B #3329B9 #B92967
split-complementary
#AFB929 #2967B9 #7B29B9
monochromatic
#505513 #80871E #AFB929 #CDD749 #DBE27B

Accessibility & contrast

On white

2.14
#AFB929 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#AFB929 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB929
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB929#FFFFFF#000000##000000
##AFB9291.002.149.799.79
#FFFFFF2.141.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B000
Deuteranopia (green-blind)
#C7B236
Tritanopia (blue-blind)
#BBAE9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb929;
/* rgb */ color: rgb(175, 185, 41);
/* oklch */ color: oklch(75.3% 0.157 113.7);
Tailwind
colors: {
  custom: {
    50: '#cbcd70',
    500: '#afb929',
    950: '#000000',
  },
}
SCSS
$custom: #afb929;
$custom-light: #cbcd70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb929",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 41
  },
  "hsl": {
    "h": 64.167,
    "s": 63.717,
    "l": 44.314
  },
  "oklch": {
    "l": 0.75346,
    "c": 0.15707,
    "h": 113.7
  },
  "luminance": 0.43972
}

Semantic roles & 50–950 ramp

primary
#AFB929
secondary
#7A74CA
accent
#41E74D
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB929

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

Preview Lab → · Contrast checker → · Palette generator →

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