#AFD262#AFD262

#AFD262 is a light, vivid yellow-green. Relative luminance 0.561; OKLCH L 81.5% C 0.145 H 124.0°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#AFD262
RGBrgb(175, 210, 98)
HSLhsl(79, 55%, 60%)
HSVhsv(79, 53%, 82%)
CMYKcmyk(16.7%, 0%, 53.3%, 17.6%)
CIE-LABlab(79.66, -28.72, 51.03)
CIE-LCHlch(79.66, 58.55, 119.37°)
OKLaboklab(81.48% -0.0811 0.1203)
OKLCHoklch(81.48% 0.145 124)
XYZxyz(42.9305, 56.0887, 20.1174)
Luminance0.5609 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD262 #8562D2
analogous
#D2BD62 #AFD262 #77D262
triadic
#AFD262 #62AFD2 #D262AF
tetradic
#AFD262 #62D2BD #8562D2 #D26277
square
#AFD262 #62D2BD #8562D2 #D26277
split-complementary
#AFD262 #6277D2 #BD62D2
monochromatic
#709029 #95C037 #AFD262 #C7E092 #DFEDC1

Accessibility & contrast

On white

1.72
#AFD262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.22
#AFD262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD262
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD262#FFFFFF#000000##000000
##AFD2621.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC757
Deuteranopia (green-blind)
#D8C569
Tritanopia (blue-blind)
#B6C9B9
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd262;
/* rgb */ color: rgb(175, 210, 98);
/* oklch */ color: oklch(81.5% 0.145 124.0);
Tailwind
colors: {
  custom: {
    50: '#c9e092',
    500: '#afd262',
    950: '#000000',
  },
}
SCSS
$custom: #afd262;
$custom-light: #c9e092;
$custom-dark: #000000;
JSON
{
  "hex": "#afd262",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 98
  },
  "hsl": {
    "h": 78.75,
    "s": 55.446,
    "l": 60.392
  },
  "oklch": {
    "l": 0.81478,
    "c": 0.14506,
    "h": 124
  },
  "luminance": 0.56089
}

Semantic roles & 50–950 ramp

primary
#AFD262
secondary
#5C4296
accent
#23C355
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150D
muted
#83847F

Preview Lab

Preview with #AFD262

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

Preview Lab → · Contrast checker → · Palette generator →

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