#AFB41D#AFB41D

#AFB41D is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.2% C 0.157 H 111.7°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#AFB41D
RGBrgb(175, 180, 29)
HSLhsl(62, 72%, 41%)
HSVhsv(62, 84%, 71%)
CMYKcmyk(2.8%, 0%, 83.9%, 29.4%)
CIE-LABlab(70.76, -18.27, 67.84)
CIE-LCHlch(70.76, 70.26, 105.08°)
OKLaboklab(74.17% -0.0582 0.1459)
OKLCHoklch(74.17% 0.157 111.7)
XYZxyz(34.2235, 41.8461, 7.4365)
Luminance0.4184 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB41D #221DB4
analogous
#B46D1D #AFB41D #63B41D
triadic
#AFB41D #1DAFB4 #B41DAF
tetradic
#AFB41D #1DB46D #221DB4 #B41D63
square
#AFB41D #1DB46D #221DB4 #B41D63
split-complementary
#AFB41D #1D63B4 #6D1DB4
monochromatic
#494B0C #7C7F15 #AFB41D #D8DE30 #E2E665

Accessibility & contrast

On white

2.24
#AFB41D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#AFB41D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB41D
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB41D#FFFFFF#000000##000000
##AFB41D1.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AB00
Deuteranopia (green-blind)
#C3AF2D
Tritanopia (blue-blind)
#BCA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb41d;
/* rgb */ color: rgb(175, 180, 29);
/* oklch */ color: oklch(74.2% 0.157 111.7);
Tailwind
colors: {
  custom: {
    50: '#cbca6a',
    500: '#afb41d',
    950: '#000000',
  },
}
SCSS
$custom: #afb41d;
$custom-light: #cbca6a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb41d",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 29
  },
  "hsl": {
    "h": 61.987,
    "s": 72.249,
    "l": 40.98
  },
  "oklch": {
    "l": 0.74172,
    "c": 0.1571,
    "h": 111.7
  },
  "luminance": 0.41845
}

Semantic roles & 50–950 ramp

primary
#AFB41D
secondary
#6561CB
accent
#39EF3F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB41D

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

Preview Lab → · Contrast checker → · Palette generator →

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