#AFCF4F#AFCF4F

#AFCF4F is a light, vivid yellow-green. Relative luminance 0.543; OKLCH L 80.6% C 0.158 H 121.9°. Best body text is #000000 at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#AFCF4F
RGBrgb(175, 207, 79)
HSLhsl(75, 57%, 56%)
HSVhsv(75, 62%, 81%)
CMYKcmyk(15.5%, 0%, 61.8%, 18.8%)
CIE-LABlab(78.64, -28.90, 58.30)
CIE-LCHlch(78.64, 65.07, 116.37°)
OKLaboklab(80.59% -0.0834 0.1338)
OKLCHoklch(80.59% 0.158 121.9)
XYZxyz(41.4037, 54.3041, 15.6961)
Luminance0.5430 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCF4F #6F4FCF
analogous
#CFAF4F #AFCF4F #6FCF4F
triadic
#AFCF4F #4FAFCF #CF4FAF
tetradic
#AFCF4F #4FCFAF #6F4FCF #CF4F6F
square
#AFCF4F #4FCFAF #6F4FCF #CF4F6F
split-complementary
#AFCF4F #4F6FCF #AF4FCF
monochromatic
#698123 #91B130 #AFCF4F #C5DC7F #DBE9AF

Accessibility & contrast

On white

1.77
#AFCF4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.86
#AFCF4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCF4F
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCF4F#FFFFFF#000000##000000
##AFCF4F1.001.7711.8611.86
#FFFFFF1.771.0021.0021.00
#00000011.8621.001.001.00
##00000011.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC340
Deuteranopia (green-blind)
#D7C358
Tritanopia (blue-blind)
#B7C5B4
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #afcf4f;
/* rgb */ color: rgb(175, 207, 79);
/* oklch */ color: oklch(80.6% 0.158 121.9);
Tailwind
colors: {
  custom: {
    50: '#cadd86',
    500: '#afcf4f',
    950: '#000000',
  },
}
SCSS
$custom: #afcf4f;
$custom-light: #cadd86;
$custom-dark: #000000;
JSON
{
  "hex": "#afcf4f",
  "rgb": {
    "r": 175,
    "g": 207,
    "b": 79
  },
  "hsl": {
    "h": 75,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.80593,
    "c": 0.15763,
    "h": 121.9
  },
  "luminance": 0.54304
}

Semantic roles & 50–950 ramp

primary
#AFCF4F
secondary
#4E3A88
accent
#47E06E
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFCF4F

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

Preview Lab → · Contrast checker → · Palette generator →

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