#AFC04E#AFC04E

#AFC04E is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.2% C 0.140 H 116.9°. Best body text is #000000 at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#AFC04E
RGBrgb(175, 192, 78)
HSLhsl(69, 48%, 53%)
HSVhsv(69, 59%, 75%)
CMYKcmyk(8.9%, 0%, 59.4%, 24.7%)
CIE-LABlab(74.42, -21.71, 54.12)
CIE-LCHlch(74.42, 58.31, 111.86°)
OKLaboklab(77.2% -0.0634 0.1248)
OKLCHoklch(77.2% 0.14 116.9)
XYZxyz(37.9047, 47.3637, 14.3515)
Luminance0.4736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC04E #5F4EC0
analogous
#C0984E #AFC04E #76C04E
triadic
#AFC04E #4EAFC0 #C04EAF
tetradic
#AFC04E #4EC098 #5F4EC0 #C04E76
square
#AFC04E #4EC098 #5F4EC0 #C04E76
split-complementary
#AFC04E #4E76C0 #984EC0
monochromatic
#626D27 #8B9A37 #AFC04E #C3D07B #D8E0A8

Accessibility & contrast

On white

2.01
#AFC04E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.47
#AFC04E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC04E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC04E#FFFFFF#000000##000000
##AFC04E1.002.0110.4710.47
#FFFFFF2.011.0021.0021.00
#00000010.4721.001.001.00
##00000010.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB741
Deuteranopia (green-blind)
#CAB855
Tritanopia (blue-blind)
#B9B6A8
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc04e;
/* rgb */ color: rgb(175, 192, 78);
/* oklch */ color: oklch(77.2% 0.140 116.9);
Tailwind
colors: {
  custom: {
    50: '#c9d384',
    500: '#afc04e',
    950: '#000000',
  },
}
SCSS
$custom: #afc04e;
$custom-light: #c9d384;
$custom-dark: #000000;
JSON
{
  "hex": "#afc04e",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 78
  },
  "hsl": {
    "h": 68.947,
    "s": 47.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.77201,
    "c": 0.13996,
    "h": 116.9
  },
  "luminance": 0.47363
}

Semantic roles & 50–950 ramp

primary
#AFC04E
secondary
#A49CCE
accent
#51D765
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFC04E

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

Preview Lab → · Contrast checker → · Palette generator →

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