#AFBD40#AFBD40

#AFBD40 is a light, vivid yellow. Relative luminance 0.459; OKLCH L 76.4% C 0.147 H 115.4°. Best body text is #000000 at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#AFBD40
RGBrgb(175, 189, 64)
HSLhsl(67, 49%, 50%)
HSVhsv(67, 66%, 74%)
CMYKcmyk(7.4%, 0%, 66.1%, 25.9%)
CIE-LABlab(73.47, -21.20, 58.99)
CIE-LCHlch(73.47, 62.69, 109.77°)
OKLaboklab(76.4% -0.0634 0.1332)
OKLCHoklch(76.4% 0.147 115.4)
XYZxyz(36.8031, 45.8799, 11.7664)
Luminance0.4588 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBD40 #4E40BD
analogous
#BD8D40 #AFBD40 #71BD40
triadic
#AFBD40 #40AFBD #BD40AF
tetradic
#AFBD40 #40BD8D #4E40BD #BD4071
square
#AFBD40 #40BD8D #4E40BD #BD4071
split-complementary
#AFBD40 #4071BD #8D40BD
monochromatic
#5A6221 #858F31 #AFBD40 #C3CD6D #D6DD9A

Accessibility & contrast

On white

2.06
#AFBD40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.18
#AFBD40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBD40
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBD40#FFFFFF#000000##000000
##AFBD401.002.0610.1810.18
#FFFFFF2.061.0021.0021.00
#00000010.1821.001.001.00
##00000010.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB42E
Deuteranopia (green-blind)
#C9B549
Tritanopia (blue-blind)
#BAB2A4
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbd40;
/* rgb */ color: rgb(175, 189, 64);
/* oklch */ color: oklch(76.4% 0.147 115.4);
Tailwind
colors: {
  custom: {
    50: '#cad07b',
    500: '#afbd40',
    950: '#000000',
  },
}
SCSS
$custom: #afbd40;
$custom-light: #cad07b;
$custom-dark: #000000;
JSON
{
  "hex": "#afbd40",
  "rgb": {
    "r": 175,
    "g": 189,
    "b": 64
  },
  "hsl": {
    "h": 66.72,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.76398,
    "c": 0.14746,
    "h": 115.4
  },
  "luminance": 0.45879
}

Semantic roles & 50–950 ramp

primary
#AFBD40
secondary
#9690C9
accent
#4FD95E
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFBD40

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

Preview Lab → · Contrast checker → · Palette generator →

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