#AFBB2F#AFBB2F

#AFBB2F is a light, vivid yellow. Relative luminance 0.449; OKLCH L 75.8% C 0.156 H 114.5°. Best body text is #000000 at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#AFBB2F
RGBrgb(175, 187, 47)
HSLhsl(65, 60%, 46%)
HSVhsv(65, 75%, 73%)
CMYKcmyk(6.4%, 0%, 74.9%, 26.7%)
CIE-LABlab(72.80, -21.12, 64.54)
CIE-LCHlch(72.80, 67.91, 108.12°)
OKLaboklab(75.83% -0.0647 0.142)
OKLCHoklch(75.83% 0.156 114.5)
XYZxyz(35.9637, 44.8605, 9.4532)
Luminance0.4486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBB2F #3B2FBB
analogous
#BB812F #AFBB2F #69BB2F
triadic
#AFBB2F #2FAFBB #BB2FAF
tetradic
#AFBB2F #2FBB81 #3B2FBB #BB2F69
square
#AFBB2F #2FBB81 #3B2FBB #BB2F69
split-complementary
#AFBB2F #2F69BB #812FBB
monochromatic
#535916 #818A23 #AFBB2F #C9D453 #D8E084

Accessibility & contrast

On white

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

On black

9.97
#AFBB2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBB2F
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBB2F#FFFFFF#000000##000000
##AFBB2F1.002.119.979.97
#FFFFFF2.111.0021.0021.00
#0000009.9721.001.001.00
##0000009.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B20E
Deuteranopia (green-blind)
#C8B43B
Tritanopia (blue-blind)
#BBB0A1
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbb2f;
/* rgb */ color: rgb(175, 187, 47);
/* oklch */ color: oklch(75.8% 0.156 114.5);
Tailwind
colors: {
  custom: {
    50: '#cacf72',
    500: '#afbb2f',
    950: '#000000',
  },
}
SCSS
$custom: #afbb2f;
$custom-light: #cacf72;
$custom-dark: #000000;
JSON
{
  "hex": "#afbb2f",
  "rgb": {
    "r": 175,
    "g": 187,
    "b": 47
  },
  "hsl": {
    "h": 65.143,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.75828,
    "c": 0.15608,
    "h": 114.5
  },
  "luminance": 0.4486
}

Semantic roles & 50–950 ramp

primary
#AFBB2F
secondary
#837CC9
accent
#45E352
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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