#AFBB28#AFBB28

#AFBB28 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.8% C 0.160 H 114.4°. Best body text is #000000 at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#AFBB28
RGBrgb(175, 187, 40)
HSLhsl(65, 65%, 45%)
HSVhsv(65, 79%, 73%)
CMYKcmyk(6.4%, 0%, 78.6%, 26.7%)
CIE-LABlab(72.77, -21.41, 66.68)
CIE-LCHlch(72.77, 70.03, 107.80°)
OKLaboklab(75.79% -0.0661 0.1453)
OKLCHoklch(75.79% 0.16 114.4)
XYZxyz(35.8336, 44.8085, 8.7683)
Luminance0.4481 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBB28 #3428BB
analogous
#BB7E28 #AFBB28 #66BB28
triadic
#AFBB28 #28AFBB #BB28AF
tetradic
#AFBB28 #28BB7E #3428BB #BB2866
square
#AFBB28 #28BB7E #3428BB #BB2866
split-complementary
#AFBB28 #2866BB #7E28BB
monochromatic
#515612 #80891D #AFBB28 #CCD848 #DAE37B

Accessibility & contrast

On white

2.11
#AFBB28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.96
#AFBB28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBB28
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBB28#FFFFFF#000000##000000
##AFBB281.002.119.969.96
#FFFFFF2.111.0021.0021.00
#0000009.9621.001.001.00
##0000009.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#C8B436
Tritanopia (blue-blind)
#BBB0A0
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbb28;
/* rgb */ color: rgb(175, 187, 40);
/* oklch */ color: oklch(75.8% 0.160 114.4);
Tailwind
colors: {
  custom: {
    50: '#cbcf6f',
    500: '#afbb28',
    950: '#000000',
  },
}
SCSS
$custom: #afbb28;
$custom-light: #cbcf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afbb28",
  "rgb": {
    "r": 175,
    "g": 187,
    "b": 40
  },
  "hsl": {
    "h": 64.898,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.7579,
    "c": 0.15964,
    "h": 114.4
  },
  "luminance": 0.44808
}

Semantic roles & 50–950 ramp

primary
#AFBB28
secondary
#7B74CB
accent
#40E84E
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFBB28

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

Preview Lab → · Contrast checker → · Palette generator →

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