#AFD277#AFD277

#AFD277 is a light, vivid yellow-green. Relative luminance 0.565; OKLCH L 81.8% C 0.124 H 126.2°. Best body text is #000000 at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#AFD277
RGBrgb(175, 210, 119)
HSLhsl(83, 50%, 65%)
HSVhsv(83, 43%, 82%)
CMYKcmyk(16.7%, 0%, 43.3%, 17.6%)
CIE-LABlab(79.92, -26.49, 41.23)
CIE-LCHlch(79.92, 49.01, 122.72°)
OKLaboklab(81.77% -0.0733 0.1001)
OKLCHoklch(81.77% 0.124 126.2)
XYZxyz(44.0553, 56.5386, 26.0412)
Luminance0.5654 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD277 #9A77D2
analogous
#D2C877 #AFD277 #82D277
triadic
#AFD277 #77AFD2 #D277AF
tetradic
#AFD277 #77D2C8 #9A77D2 #D27782
square
#AFD277 #77D2C8 #9A77D2 #D27782
split-complementary
#AFD277 #7782D2 #C877D2
monochromatic
#739B33 #94C349 #AFD277 #CAE1A5 #E5F0D3

Accessibility & contrast

On white

1.71
#AFD277 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.31
#AFD277 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD277
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD277#FFFFFF#000000##000000
##AFD2771.001.7112.3112.31
#FFFFFF1.711.0021.0021.00
#00000012.3121.001.001.00
##00000012.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC770
Deuteranopia (green-blind)
#D6C67C
Tritanopia (blue-blind)
#B4CABC
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #afd277;
/* rgb */ color: rgb(175, 210, 119);
/* oklch */ color: oklch(81.8% 0.124 126.2);
Tailwind
colors: {
  custom: {
    50: '#c8e0a0',
    500: '#afd277',
    950: '#000000',
  },
}
SCSS
$custom: #afd277;
$custom-light: #c8e0a0;
$custom-dark: #000000;
JSON
{
  "hex": "#afd277",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 119
  },
  "hsl": {
    "h": 83.077,
    "s": 50.276,
    "l": 64.51
  },
  "oklch": {
    "l": 0.81765,
    "c": 0.12404,
    "h": 126.2
  },
  "luminance": 0.56539
}

Semantic roles & 50–950 ramp

primary
#AFD277
secondary
#6D4DA0
accent
#28BE61
background
#FDFEFC
surface
#F9FCF5
border
#D2D5CF
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD277

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

Preview Lab → · Contrast checker → · Palette generator →

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