#AFBB40#AFBB40

#AFBB40 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 75.9% C 0.145 H 114.7°. Best body text is #000000 at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#AFBB40
RGBrgb(175, 187, 64)
HSLhsl(66, 49%, 49%)
HSVhsv(66, 66%, 73%)
CMYKcmyk(6.4%, 0%, 65.8%, 26.7%)
CIE-LABlab(72.91, -20.21, 58.41)
CIE-LCHlch(72.91, 61.81, 109.08°)
OKLaboklab(75.95% -0.0606 0.1319)
OKLCHoklch(75.95% 0.145 114.7)
XYZxyz(36.3758, 45.0254, 11.6240)
Luminance0.4502 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBB40 #4C40BB
analogous
#BB8A40 #AFBB40 #72BB40
triadic
#AFBB40 #40AFBB #BB40AF
tetradic
#AFBB40 #40BB8A #4C40BB #BB4072
square
#AFBB40 #40BB8A #4C40BB #BB4072
split-complementary
#AFBB40 #4072BB #8A40BB
monochromatic
#5A6021 #848D30 #AFBB40 #C3CD6C #D6DC99

Accessibility & contrast

On white

2.10
#AFBB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.00
#AFBB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBB40
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBB40#FFFFFF#000000##000000
##AFBB401.002.1010.0010.00
#FFFFFF2.101.0021.0021.00
#00000010.0021.001.001.00
##00000010.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B22F
Deuteranopia (green-blind)
#C7B449
Tritanopia (blue-blind)
#BAB0A2
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbb40;
/* rgb */ color: rgb(175, 187, 64);
/* oklch */ color: oklch(75.9% 0.145 114.7);
Tailwind
colors: {
  custom: {
    50: '#cacf7b',
    500: '#afbb40',
    950: '#000000',
  },
}
SCSS
$custom: #afbb40;
$custom-light: #cacf7b;
$custom-dark: #000000;
JSON
{
  "hex": "#afbb40",
  "rgb": {
    "r": 175,
    "g": 187,
    "b": 64
  },
  "hsl": {
    "h": 65.854,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.7595,
    "c": 0.14517,
    "h": 114.7
  },
  "luminance": 0.45025
}

Semantic roles & 50–950 ramp

primary
#AFBB40
secondary
#948FC8
accent
#4FD95D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBB40

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

Preview Lab → · Contrast checker → · Palette generator →

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