#AFD766#AFD766

#AFD766 is a very light, vivid yellow-green. Relative luminance 0.587; OKLCH L 82.7% C 0.148 H 125.7°. Best body text is #000000 at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#AFD766
RGBrgb(175, 215, 102)
HSLhsl(81, 59%, 62%)
HSVhsv(81, 53%, 84%)
CMYKcmyk(18.6%, 0%, 52.6%, 15.7%)
CIE-LABlab(81.11, -30.69, 50.87)
CIE-LCHlch(81.11, 59.41, 121.10°)
OKLaboklab(82.66% -0.0863 0.1203)
OKLCHoklch(82.66% 0.148 125.7)
XYZxyz(44.3779, 58.6737, 21.5550)
Luminance0.5867 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD766 #8E66D7
analogous
#D7C766 #AFD766 #77D766
triadic
#AFD766 #66AFD7 #D766AF
tetradic
#AFD766 #66D7C7 #8E66D7 #D76677
square
#AFD766 #66D7C7 #8E66D7 #D76677
split-complementary
#AFD766 #6677D7 #C766D7
monochromatic
#729A28 #96CA35 #AFD766 #C8E497 #E2F0C7

Accessibility & contrast

On white

1.65
#AFD766 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.73
#AFD766 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD766
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD766#FFFFFF#000000##000000
##AFD7661.001.6512.7312.73
#FFFFFF1.651.0021.0021.00
#00000012.7321.001.001.00
##00000012.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1CB5B
Deuteranopia (green-blind)
#DBC96D
Tritanopia (blue-blind)
#B5CEBE
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #afd766;
/* rgb */ color: rgb(175, 215, 102);
/* oklch */ color: oklch(82.7% 0.148 125.7);
Tailwind
colors: {
  custom: {
    50: '#c9e394',
    500: '#afd766',
    950: '#000000',
  },
}
SCSS
$custom: #afd766;
$custom-light: #c9e394;
$custom-dark: #000000;
JSON
{
  "hex": "#afd766",
  "rgb": {
    "r": 175,
    "g": 215,
    "b": 102
  },
  "hsl": {
    "h": 81.239,
    "s": 58.549,
    "l": 62.157
  },
  "oklch": {
    "l": 0.82658,
    "c": 0.14802,
    "h": 125.7
  },
  "luminance": 0.58674
}

Semantic roles & 50–950 ramp

primary
#AFD766
secondary
#63429F
accent
#1FC65A
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150D
muted
#83847F

Preview Lab

Preview with #AFD766

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

Preview Lab → · Contrast checker → · Palette generator →

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