#AFBC2F#AFBC2F

#AFBC2F is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.1% C 0.157 H 114.9°. Best body text is #000000 at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#AFBC2F
RGBrgb(175, 188, 47)
HSLhsl(66, 60%, 46%)
HSVhsv(66, 75%, 74%)
CMYKcmyk(6.9%, 0%, 75%, 26.3%)
CIE-LABlab(73.08, -21.61, 64.81)
CIE-LCHlch(73.08, 68.31, 108.44°)
OKLaboklab(76.05% -0.0661 0.1426)
OKLCHoklch(76.05% 0.157 114.9)
XYZxyz(36.1765, 45.2863, 9.5242)
Luminance0.4529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBC2F #3C2FBC
analogous
#BC822F #AFBC2F #68BC2F
triadic
#AFBC2F #2FAFBC #BC2FAF
tetradic
#AFBC2F #2FBC82 #3C2FBC #BC2F68
square
#AFBC2F #2FBC82 #3C2FBC #BC2F68
split-complementary
#AFBC2F #2F68BC #822FBC
monochromatic
#545A17 #818B23 #AFBC2F #C8D454 #D8E085

Accessibility & contrast

On white

2.09
#AFBC2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.06
#AFBC2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBC2F
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBC2F#FFFFFF#000000##000000
##AFBC2F1.002.0910.0610.06
#FFFFFF2.091.0021.0021.00
#00000010.0621.001.001.00
##00000010.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB20D
Deuteranopia (green-blind)
#C9B53B
Tritanopia (blue-blind)
#BBB1A1
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbc2f;
/* rgb */ color: rgb(175, 188, 47);
/* oklch */ color: oklch(76.1% 0.157 114.9);
Tailwind
colors: {
  custom: {
    50: '#cad073',
    500: '#afbc2f',
    950: '#000000',
  },
}
SCSS
$custom: #afbc2f;
$custom-light: #cad073;
$custom-dark: #000000;
JSON
{
  "hex": "#afbc2f",
  "rgb": {
    "r": 175,
    "g": 188,
    "b": 47
  },
  "hsl": {
    "h": 65.532,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.76053,
    "c": 0.15716,
    "h": 114.9
  },
  "luminance": 0.45286
}

Semantic roles & 50–950 ramp

primary
#AFBC2F
secondary
#847DCA
accent
#45E353
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBC2F

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

Preview Lab → · Contrast checker → · Palette generator →

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