#AFB729#AFB729

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

Color values

HEX#AFB729
RGBrgb(175, 183, 41)
HSLhsl(63, 63%, 44%)
HSVhsv(63, 78%, 72%)
CMYKcmyk(4.4%, 0%, 77.6%, 28.2%)
CIE-LABlab(71.65, -19.38, 65.38)
CIE-LCHlch(71.65, 68.19, 106.51°)
OKLaboklab(74.9% -0.0604 0.1427)
OKLCHoklch(74.9% 0.155 112.9)
XYZxyz(35.0141, 43.1418, 8.5801)
Luminance0.4314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB729 #3129B7
analogous
#B77829 #AFB729 #68B729
triadic
#AFB729 #29AFB7 #B729AF
tetradic
#AFB729 #29B778 #3129B7 #B72968
square
#AFB729 #29B778 #3129B7 #B72968
split-complementary
#AFB729 #2968B7 #7829B7
monochromatic
#4F5313 #7F851E #AFB729 #CED647 #DBE179

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB729#FFFFFF#000000##000000
##AFB7291.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)
#C5AE00
Deuteranopia (green-blind)
#C5B136
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb729;
/* rgb */ color: rgb(175, 183, 41);
/* oklch */ color: oklch(74.9% 0.155 112.9);
Tailwind
colors: {
  custom: {
    50: '#cbcc6f',
    500: '#afb729',
    950: '#000000',
  },
}
SCSS
$custom: #afb729;
$custom-light: #cbcc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb729",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 41
  },
  "hsl": {
    "h": 63.38,
    "s": 63.393,
    "l": 43.922
  },
  "oklch": {
    "l": 0.74898,
    "c": 0.15499,
    "h": 112.9
  },
  "luminance": 0.43141
}

Semantic roles & 50–950 ramp

primary
#AFB729
secondary
#7873C9
accent
#41E64B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB729

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

Preview Lab → · Contrast checker → · Palette generator →

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