#AFC640#AFC640

#AFC640 is a light, vivid yellow-green. Relative luminance 0.499; OKLCH L 78.4% C 0.158 H 118.6°. Best body text is #000000 at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#AFC640
RGBrgb(175, 198, 64)
HSLhsl(70, 54%, 51%)
HSVhsv(70, 68%, 78%)
CMYKcmyk(11.6%, 0%, 67.7%, 22.4%)
CIE-LABlab(75.99, -25.61, 61.58)
CIE-LCHlch(75.99, 66.69, 112.58°)
OKLaboklab(78.43% -0.0756 0.1386)
OKLCHoklch(78.43% 0.158 118.6)
XYZxyz(38.7994, 49.8726, 12.4319)
Luminance0.4987 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC640 #5740C6
analogous
#C69A40 #AFC640 #6CC640
triadic
#AFC640 #40AFC6 #C640AF
tetradic
#AFC640 #40C69A #5740C6 #C6406C
square
#AFC640 #40C69A #5740C6 #C6406C
split-complementary
#AFC640 #406CC6 #9A40C6
monochromatic
#5F6C20 #889B2E #AFC640 #C3D46F #D6E29E

Accessibility & contrast

On white

1.91
#AFC640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.97
#AFC640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC640
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC640#FFFFFF#000000##000000
##AFC6401.001.9110.9710.97
#FFFFFF1.911.0021.0021.00
#00000010.9721.001.001.00
##00000010.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB2C
Deuteranopia (green-blind)
#D0BC4A
Tritanopia (blue-blind)
#B9BBAB
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #afc640;
/* rgb */ color: rgb(175, 198, 64);
/* oklch */ color: oklch(78.4% 0.158 118.6);
Tailwind
colors: {
  custom: {
    50: '#cad77c',
    500: '#afc640',
    950: '#000000',
  },
}
SCSS
$custom: #afc640;
$custom-light: #cad77c;
$custom-dark: #000000;
JSON
{
  "hex": "#afc640",
  "rgb": {
    "r": 175,
    "g": 198,
    "b": 64
  },
  "hsl": {
    "h": 70.299,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.78425,
    "c": 0.15789,
    "h": 118.6
  },
  "luminance": 0.49872
}

Semantic roles & 50–950 ramp

primary
#AFC640
secondary
#9E93CE
accent
#4ADD64
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#14140A
muted
#82837C

Preview Lab

Preview with #AFC640

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

Preview Lab → · Contrast checker → · Palette generator →

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