#AFB829#AFB829

#AFB829 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.1% C 0.156 H 113.3°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#AFB829
RGBrgb(175, 184, 41)
HSLhsl(64, 64%, 44%)
HSVhsv(64, 78%, 72%)
CMYKcmyk(4.9%, 0%, 77.7%, 27.8%)
CIE-LABlab(71.93, -19.88, 65.63)
CIE-LCHlch(71.93, 68.57, 106.85°)
OKLaboklab(75.12% -0.0618 0.1433)
OKLCHoklch(75.12% 0.156 113.3)
XYZxyz(35.2211, 43.5558, 8.6491)
Luminance0.4355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB829 #3229B8
analogous
#B87A29 #AFB829 #68B829
triadic
#AFB829 #29AFB8 #B829AF
tetradic
#AFB829 #29B87A #3229B8 #B82968
square
#AFB829 #29B87A #3229B8 #B82968
split-complementary
#AFB829 #2968B8 #7A29B8
monochromatic
#505413 #7F861E #AFB829 #CDD648 #DBE17A

Accessibility & contrast

On white

2.16
#AFB829 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#AFB829 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB829
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB829#FFFFFF#000000##000000
##AFB8291.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF00
Deuteranopia (green-blind)
#C6B236
Tritanopia (blue-blind)
#BBAD9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb829;
/* rgb */ color: rgb(175, 184, 41);
/* oklch */ color: oklch(75.1% 0.156 113.3);
Tailwind
colors: {
  custom: {
    50: '#cbcd6f',
    500: '#afb829',
    950: '#000000',
  },
}
SCSS
$custom: #afb829;
$custom-light: #cbcd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb829",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 41
  },
  "hsl": {
    "h": 63.776,
    "s": 63.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.75122,
    "c": 0.15602,
    "h": 113.3
  },
  "luminance": 0.43555
}

Semantic roles & 50–950 ramp

primary
#AFB829
secondary
#7973C9
accent
#41E74C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB829

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

Preview Lab → · Contrast checker → · Palette generator →

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