#AFC262#AFC262

#AFC262 is a light, vivid yellow-green. Relative luminance 0.486; OKLCH L 77.9% C 0.124 H 118.6°. Best body text is #000000 at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#AFC262
RGBrgb(175, 194, 98)
HSLhsl(72, 44%, 57%)
HSVhsv(72, 49%, 76%)
CMYKcmyk(9.8%, 0%, 49.5%, 23.9%)
CIE-LABlab(75.19, -20.95, 45.72)
CIE-LCHlch(75.19, 50.30, 114.62°)
OKLaboklab(77.88% -0.0593 0.1087)
OKLCHoklch(77.88% 0.124 118.6)
XYZxyz(39.1760, 48.5796, 18.8659)
Luminance0.4858 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC262 #7562C2
analogous
#C2A562 #AFC262 #7FC262
triadic
#AFC262 #62AFC2 #C262AF
tetradic
#AFC262 #62C2A5 #7562C2 #C2627F
square
#AFC262 #62C2A5 #7562C2 #C2627F
split-complementary
#AFC262 #627FC2 #A562C2
monochromatic
#6B7A2F #92A641 #AFC262 #C5D38E #DCE4BA

Accessibility & contrast

On white

1.96
#AFC262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.72
#AFC262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC262
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC262#FFFFFF#000000##000000
##AFC2621.001.9610.7210.72
#FFFFFF1.961.0021.0021.00
#00000010.7221.001.001.00
##00000010.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB959
Deuteranopia (green-blind)
#CBBA67
Tritanopia (blue-blind)
#B7B9AC
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #afc262;
/* rgb */ color: rgb(175, 194, 98);
/* oklch */ color: oklch(77.9% 0.124 118.6);
Tailwind
colors: {
  custom: {
    50: '#c8d491',
    500: '#afc262',
    950: '#000000',
  },
}
SCSS
$custom: #afc262;
$custom-light: #c8d491;
$custom-dark: #000000;
JSON
{
  "hex": "#afc262",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 98
  },
  "hsl": {
    "h": 71.875,
    "s": 44.037,
    "l": 57.255
  },
  "oklch": {
    "l": 0.77883,
    "c": 0.12382,
    "h": 118.6
  },
  "luminance": 0.48579
}

Semantic roles & 50–950 ramp

primary
#AFC262
secondary
#B4ACD3
accent
#54D46D
background
#FCFDF9
surface
#F8FAF1
border
#D1D3CB
text
#13140D
muted
#82837E

Preview Lab

Preview with #AFC262

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

Preview Lab → · Contrast checker → · Palette generator →

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