#AFBC40#AFBC40

#AFBC40 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.2% C 0.146 H 115.1°. Best body text is #000000 at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#AFBC40
RGBrgb(175, 188, 64)
HSLhsl(66, 49%, 49%)
HSVhsv(66, 66%, 74%)
CMYKcmyk(6.9%, 0%, 66%, 26.3%)
CIE-LABlab(73.19, -20.71, 58.70)
CIE-LCHlch(73.19, 62.25, 109.43°)
OKLaboklab(76.17% -0.062 0.1325)
OKLCHoklch(76.17% 0.146 115.1)
XYZxyz(36.5887, 45.4512, 11.6950)
Luminance0.4545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBC40 #4D40BC
analogous
#BC8B40 #AFBC40 #71BC40
triadic
#AFBC40 #40AFBC #BC40AF
tetradic
#AFBC40 #40BC8B #4D40BC #BC4071
square
#AFBC40 #40BC8B #4D40BC #BC4071
split-complementary
#AFBC40 #4071BC #8B40BC
monochromatic
#5A6121 #858E30 #AFBC40 #C3CD6C #D6DD9A

Accessibility & contrast

On white

2.08
#AFBC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.09
#AFBC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBC40
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBC40#FFFFFF#000000##000000
##AFBC401.002.0810.0910.09
#FFFFFF2.081.0021.0021.00
#00000010.0921.001.001.00
##00000010.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B32F
Deuteranopia (green-blind)
#C8B549
Tritanopia (blue-blind)
#BAB1A3
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbc40;
/* rgb */ color: rgb(175, 188, 64);
/* oklch */ color: oklch(76.2% 0.146 115.1);
Tailwind
colors: {
  custom: {
    50: '#cad07b',
    500: '#afbc40',
    950: '#000000',
  },
}
SCSS
$custom: #afbc40;
$custom-light: #cad07b;
$custom-dark: #000000;
JSON
{
  "hex": "#afbc40",
  "rgb": {
    "r": 175,
    "g": 188,
    "b": 64
  },
  "hsl": {
    "h": 66.29,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.76174,
    "c": 0.14632,
    "h": 115.1
  },
  "luminance": 0.45451
}

Semantic roles & 50–950 ramp

primary
#AFBC40
secondary
#958FC9
accent
#4FD95D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBC40

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

Preview Lab → · Contrast checker → · Palette generator →

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