#AFBB2E#AFBB2E

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

Color values

HEX#AFBB2E
RGBrgb(175, 187, 46)
HSLhsl(65, 61%, 46%)
HSVhsv(65, 75%, 73%)
CMYKcmyk(6.4%, 0%, 75.4%, 26.7%)
CIE-LABlab(72.79, -21.16, 64.86)
CIE-LCHlch(72.79, 68.23, 108.07°)
OKLaboklab(75.82% -0.0649 0.1425)
OKLCHoklch(75.82% 0.157 114.5)
XYZxyz(35.9437, 44.8525, 9.3482)
Luminance0.4485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBB2E #3A2EBB
analogous
#BB802E #AFBB2E #69BB2E
triadic
#AFBB2E #2EAFBB #BB2EAF
tetradic
#AFBB2E #2EBB80 #3A2EBB #BB2E69
square
#AFBB2E #2EBB80 #3A2EBB #BB2E69
split-complementary
#AFBB2E #2E69BB #802EBB
monochromatic
#535916 #818A22 #AFBB2E #C9D452 #D9E083

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBB2E#FFFFFF#000000##000000
##AFBB2E1.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)
#C9B20A
Deuteranopia (green-blind)
#C8B43A
Tritanopia (blue-blind)
#BBB0A0
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbb2e;
/* rgb */ color: rgb(175, 187, 46);
/* oklch */ color: oklch(75.8% 0.157 114.5);
Tailwind
colors: {
  custom: {
    50: '#cacf72',
    500: '#afbb2e',
    950: '#000000',
  },
}
SCSS
$custom: #afbb2e;
$custom-light: #cacf72;
$custom-dark: #000000;
JSON
{
  "hex": "#afbb2e",
  "rgb": {
    "r": 175,
    "g": 187,
    "b": 46
  },
  "hsl": {
    "h": 65.106,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75822,
    "c": 0.15662,
    "h": 114.5
  },
  "luminance": 0.44852
}

Semantic roles & 50–950 ramp

primary
#AFBB2E
secondary
#827BCA
accent
#44E452
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBB2E

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

Preview Lab → · Contrast checker → · Palette generator →

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