#AFD279#AFD279

#AFD279 is a light, vivid yellow-green. Relative luminance 0.566; OKLCH L 81.8% C 0.122 H 126.5°. Best body text is #000000 at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#AFD279
RGBrgb(175, 210, 121)
HSLhsl(84, 50%, 65%)
HSVhsv(84, 42%, 82%)
CMYKcmyk(16.7%, 0%, 42.4%, 17.6%)
CIE-LABlab(79.95, -26.26, 40.27)
CIE-LCHlch(79.95, 48.08, 123.10°)
OKLaboklab(81.8% -0.0725 0.098)
OKLCHoklch(81.8% 0.122 126.5)
XYZxyz(44.1767, 56.5872, 26.6805)
Luminance0.5659 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD279 #9C79D2
analogous
#D2C979 #AFD279 #82D279
triadic
#AFD279 #79AFD2 #D279AF
tetradic
#AFD279 #79D2C9 #9C79D2 #D27982
square
#AFD279 #79D2C9 #9C79D2 #D27982
split-complementary
#AFD279 #7982D2 #C979D2
monochromatic
#739C34 #94C34B #AFD279 #CAE1A7 #E6F1D5

Accessibility & contrast

On white

1.70
#AFD279 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.32
#AFD279 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD279
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD279#FFFFFF#000000##000000
##AFD2791.001.7012.3212.32
#FFFFFF1.701.0021.0021.00
#00000012.3221.001.001.00
##00000012.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC872
Deuteranopia (green-blind)
#D5C67E
Tritanopia (blue-blind)
#B4CBBC
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #afd279;
/* rgb */ color: rgb(175, 210, 121);
/* oklch */ color: oklch(81.8% 0.122 126.5);
Tailwind
colors: {
  custom: {
    50: '#c8e0a1',
    500: '#afd279',
    950: '#000000',
  },
}
SCSS
$custom: #afd279;
$custom-light: #c8e0a1;
$custom-dark: #000000;
JSON
{
  "hex": "#afd279",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 121
  },
  "hsl": {
    "h": 83.596,
    "s": 49.721,
    "l": 64.902
  },
  "oklch": {
    "l": 0.81796,
    "c": 0.12191,
    "h": 126.5
  },
  "luminance": 0.56588
}

Semantic roles & 50–950 ramp

primary
#AFD279
secondary
#6F4EA1
accent
#28BD63
background
#FDFEFC
surface
#F9FCF5
border
#D2D5CF
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD279

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

Preview Lab → · Contrast checker → · Palette generator →

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