#AFC642#AFC642

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

Color values

HEX#AFC642
RGBrgb(175, 198, 66)
HSLhsl(70, 54%, 52%)
HSVhsv(70, 67%, 78%)
CMYKcmyk(11.6%, 0%, 66.7%, 22.4%)
CIE-LABlab(76.01, -25.48, 60.82)
CIE-LCHlch(76.01, 65.94, 112.73°)
OKLaboklab(78.44% -0.0751 0.1373)
OKLCHoklch(78.44% 0.156 118.7)
XYZxyz(38.8574, 49.8958, 12.7370)
Luminance0.4990 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC642 #5942C6
analogous
#C69B42 #AFC642 #6DC642
triadic
#AFC642 #42AFC6 #C642AF
tetradic
#AFC642 #42C69B #5942C6 #C6426D
square
#AFC642 #42C69B #5942C6 #C6426D
split-complementary
#AFC642 #426DC6 #9B42C6
monochromatic
#606D21 #899C2F #AFC642 #C3D471 #D7E2A0

Accessibility & contrast

On white

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

On black

10.98
#AFC642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC642
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC642#FFFFFF#000000##000000
##AFC6421.001.9110.9810.98
#FFFFFF1.911.0021.0021.00
#00000010.9821.001.001.00
##00000010.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB2F
Deuteranopia (green-blind)
#D0BC4C
Tritanopia (blue-blind)
#B9BCAB
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #afc642;
/* rgb */ color: rgb(175, 198, 66);
/* oklch */ color: oklch(78.4% 0.156 118.7);
Tailwind
colors: {
  custom: {
    50: '#cad77d',
    500: '#afc642',
    950: '#000000',
  },
}
SCSS
$custom: #afc642;
$custom-light: #cad77d;
$custom-dark: #000000;
JSON
{
  "hex": "#afc642",
  "rgb": {
    "r": 175,
    "g": 198,
    "b": 66
  },
  "hsl": {
    "h": 70.455,
    "s": 53.659,
    "l": 51.765
  },
  "oklch": {
    "l": 0.78441,
    "c": 0.15648,
    "h": 118.7
  },
  "luminance": 0.49895
}

Semantic roles & 50–950 ramp

primary
#AFC642
secondary
#9F95CF
accent
#4BDD64
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#14140A
muted
#82837C

Preview Lab

Preview with #AFC642

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

Preview Lab → · Contrast checker → · Palette generator →

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