#AFC52F#AFC52F

#AFC52F is a light, vivid yellow. Relative luminance 0.493; OKLCH L 78.1% C 0.167 H 117.9°. Best body text is #000000 at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#AFC52F
RGBrgb(175, 197, 47)
HSLhsl(69, 61%, 48%)
HSVhsv(69, 76%, 77%)
CMYKcmyk(11.2%, 0%, 76.1%, 22.7%)
CIE-LABlab(75.61, -26.00, 67.16)
CIE-LCHlch(75.61, 72.02, 111.17°)
OKLaboklab(78.08% -0.0782 0.1476)
OKLCHoklch(78.08% 0.167 117.9)
XYZxyz(38.1594, 49.2521, 10.1851)
Luminance0.4925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC52F #452FC5
analogous
#C5902F #AFC52F #64C52F
triadic
#AFC52F #2FAFC5 #C52FAF
tetradic
#AFC52F #2FC590 #452FC5 #C52F64
square
#AFC52F #2FC590 #452FC5 #C52F64
split-complementary
#AFC52F #2F64C5 #902FC5
monochromatic
#576217 #839423 #AFC52F #C5D85A #D6E38B

Accessibility & contrast

On white

1.94
#AFC52F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.85
#AFC52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC52F
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC52F#FFFFFF#000000##000000
##AFC52F1.001.9410.8510.85
#FFFFFF1.941.0021.0021.00
#00000010.8521.001.001.00
##00000010.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA05
Deuteranopia (green-blind)
#D0BB3D
Tritanopia (blue-blind)
#BABAA9
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #afc52f;
/* rgb */ color: rgb(175, 197, 47);
/* oklch */ color: oklch(78.1% 0.167 117.9);
Tailwind
colors: {
  custom: {
    50: '#cbd674',
    500: '#afc52f',
    950: '#000000',
  },
}
SCSS
$custom: #afc52f;
$custom-light: #cbd674;
$custom-dark: #000000;
JSON
{
  "hex": "#afc52f",
  "rgb": {
    "r": 175,
    "g": 197,
    "b": 47
  },
  "hsl": {
    "h": 68.8,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.78084,
    "c": 0.16701,
    "h": 117.9
  },
  "luminance": 0.49252
}

Semantic roles & 50–950 ramp

primary
#AFC52F
secondary
#8D82CD
accent
#43E55B
background
#FCFDF7
surface
#F9FAED
border
#D2D3C8
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC52F

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

Preview Lab → · Contrast checker → · Palette generator →

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