#AFBB42#AFBB42

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

Color values

HEX#AFBB42
RGBrgb(175, 187, 66)
HSLhsl(66, 48%, 50%)
HSVhsv(66, 65%, 73%)
CMYKcmyk(6.4%, 0%, 64.7%, 26.7%)
CIE-LABlab(72.92, -20.08, 57.62)
CIE-LCHlch(72.92, 61.02, 109.22°)
OKLaboklab(75.97% -0.06 0.1306)
OKLCHoklch(75.97% 0.144 114.7)
XYZxyz(36.4338, 45.0486, 11.9292)
Luminance0.4505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBB42 #4E42BB
analogous
#BB8A42 #AFBB42 #73BB42
triadic
#AFBB42 #42AFBB #BB42AF
tetradic
#AFBB42 #42BB8A #4E42BB #BB4273
square
#AFBB42 #42BB8A #4E42BB #BB4273
split-complementary
#AFBB42 #4273BB #8A42BB
monochromatic
#5A6122 #858E32 #AFBB42 #C3CC6E #D6DC9C

Accessibility & contrast

On white

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

On black

10.01
#AFBB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBB42
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBB42#FFFFFF#000000##000000
##AFBB421.002.1010.0110.01
#FFFFFF2.101.0021.0021.00
#00000010.0121.001.001.00
##00000010.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B232
Deuteranopia (green-blind)
#C7B44A
Tritanopia (blue-blind)
#BAB1A2
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbb42;
/* rgb */ color: rgb(175, 187, 66);
/* oklch */ color: oklch(76.0% 0.144 114.7);
Tailwind
colors: {
  custom: {
    50: '#cacf7c',
    500: '#afbb42',
    950: '#000000',
  },
}
SCSS
$custom: #afbb42;
$custom-light: #cacf7c;
$custom-dark: #000000;
JSON
{
  "hex": "#afbb42",
  "rgb": {
    "r": 175,
    "g": 187,
    "b": 66
  },
  "hsl": {
    "h": 65.95,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.75967,
    "c": 0.14369,
    "h": 114.7
  },
  "luminance": 0.45048
}

Semantic roles & 50–950 ramp

primary
#AFBB42
secondary
#9691C8
accent
#50D75E
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBB42

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

Preview Lab → · Contrast checker → · Palette generator →

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