#AFC978#AFC978

#AFC978 is a light, moderate yellow-green. Relative luminance 0.522; OKLCH L 79.8% C 0.110 H 123.4°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#AFC978
RGBrgb(175, 201, 120)
HSLhsl(79, 43%, 63%)
HSVhsv(79, 40%, 79%)
CMYKcmyk(12.9%, 0%, 40.3%, 21.2%)
CIE-LABlab(77.43, -21.99, 37.58)
CIE-LCHlch(77.43, 43.54, 120.34°)
OKLaboklab(79.77% -0.0606 0.0918)
OKLCHoklch(79.77% 0.11 123.4)
XYZxyz(41.9559, 52.2432, 25.6393)
Luminance0.5224 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC978 #9278C9
analogous
#C9BA78 #AFC978 #86C978
triadic
#AFC978 #78AFC9 #C978AF
tetradic
#AFC978 #78C9BA #9278C9 #C97886
square
#AFC978 #78C9BA #9278C9 #C97886
split-complementary
#AFC978 #7886C9 #BA78C9
monochromatic
#738E39 #95B84C #AFC978 #C9DAA4 #E3ECCF

Accessibility & contrast

On white

1.83
#AFC978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#AFC978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC978
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC978#FFFFFF#000000##000000
##AFC9781.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2C072
Deuteranopia (green-blind)
#CEBF7C
Tritanopia (blue-blind)
#B5C2B5
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #afc978;
/* rgb */ color: rgb(175, 201, 120);
/* oklch */ color: oklch(79.8% 0.110 123.4);
Tailwind
colors: {
  custom: {
    50: '#c8d9a0',
    500: '#afc978',
    950: '#000000',
  },
}
SCSS
$custom: #afc978;
$custom-light: #c8d9a0;
$custom-dark: #000000;
JSON
{
  "hex": "#afc978",
  "rgb": {
    "r": 175,
    "g": 201,
    "b": 120
  },
  "hsl": {
    "h": 79.259,
    "s": 42.857,
    "l": 62.941
  },
  "oklch": {
    "l": 0.79769,
    "c": 0.11001,
    "h": 123.4
  },
  "luminance": 0.52243
}

Semantic roles & 50–950 ramp

primary
#AFC978
secondary
#665095
accent
#30B65B
background
#FDFEFC
surface
#F9FBF5
border
#D2D4CF
text
#13140F
muted
#828380

Preview Lab

Preview with #AFC978

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

Preview Lab → · Contrast checker → · Palette generator →

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