#AFC662#AFC662

#AFC662 is a light, vivid yellow-green. Relative luminance 0.504; OKLCH L 78.8% C 0.129 H 120.2°. Best body text is #000000 at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#AFC662
RGBrgb(175, 198, 98)
HSLhsl(74, 47%, 58%)
HSVhsv(74, 51%, 78%)
CMYKcmyk(11.6%, 0%, 50.5%, 22.4%)
CIE-LABlab(76.30, -22.93, 47.06)
CIE-LCHlch(76.30, 52.35, 115.97°)
OKLaboklab(78.78% -0.0649 0.1116)
OKLCHoklch(78.78% 0.129 120.2)
XYZxyz(40.0782, 50.3841, 19.1666)
Luminance0.5038 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC662 #7962C6
analogous
#C6AB62 #AFC662 #7DC662
triadic
#AFC662 #62AFC6 #C662AF
tetradic
#AFC662 #62C6AB #7962C6 #C6627D
square
#AFC662 #62C6AB #7962C6 #C6627D
split-complementary
#AFC662 #627DC6 #AB62C6
monochromatic
#6D7F2E #93AC3F #AFC662 #C6D68F #DDE7BC

Accessibility & contrast

On white

1.90
#AFC662 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.08
#AFC662 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC662
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC662#FFFFFF#000000##000000
##AFC6621.001.9011.0811.08
#FFFFFF1.901.0021.0021.00
#00000011.0821.001.001.00
##00000011.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BC59
Deuteranopia (green-blind)
#CEBC68
Tritanopia (blue-blind)
#B7BDAF
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #afc662;
/* rgb */ color: rgb(175, 198, 98);
/* oklch */ color: oklch(78.8% 0.129 120.2);
Tailwind
colors: {
  custom: {
    50: '#c9d791',
    500: '#afc662',
    950: '#000000',
  },
}
SCSS
$custom: #afc662;
$custom-light: #c9d791;
$custom-dark: #000000;
JSON
{
  "hex": "#afc662",
  "rgb": {
    "r": 175,
    "g": 198,
    "b": 98
  },
  "hsl": {
    "h": 73.8,
    "s": 46.729,
    "l": 58.039
  },
  "oklch": {
    "l": 0.78777,
    "c": 0.1291,
    "h": 120.2
  },
  "luminance": 0.50384
}

Semantic roles & 50–950 ramp

primary
#AFC662
secondary
#544587
accent
#51D670
background
#FEFEFC
surface
#FAFBF4
border
#D3D4CE
text
#13140D
muted
#83837F

Preview Lab

Preview with #AFC662

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

Preview Lab → · Contrast checker → · Palette generator →

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