#AFC948#AFC948

#AFC948 is a light, vivid yellow-green. Relative luminance 0.514; OKLCH L 79.2% C 0.156 H 119.8°. Best body text is #000000 at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#AFC948
RGBrgb(175, 201, 72)
HSLhsl(72, 54%, 54%)
HSVhsv(72, 64%, 79%)
CMYKcmyk(12.9%, 0%, 64.2%, 21.2%)
CIE-LABlab(76.89, -26.54, 59.34)
CIE-LCHlch(76.89, 65.00, 114.09°)
OKLaboklab(79.17% -0.0774 0.1351)
OKLCHoklch(79.17% 0.156 119.8)
XYZxyz(39.7362, 51.3553, 13.9489)
Luminance0.5135 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC948 #6248C9
analogous
#C9A248 #AFC948 #6EC948
triadic
#AFC948 #48AFC9 #C948AF
tetradic
#AFC948 #48C9A2 #6248C9 #C9486E
square
#AFC948 #48C9A2 #6248C9 #C9486E
split-complementary
#AFC948 #486EC9 #A248C9
monochromatic
#647422 #8CA430 #AFC948 #C4D777 #D8E5A7

Accessibility & contrast

On white

1.86
#AFC948 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.27
#AFC948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC948
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC948#FFFFFF#000000##000000
##AFC9481.001.8611.2711.27
#FFFFFF1.861.0021.0021.00
#00000011.2721.001.001.00
##00000011.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE37
Deuteranopia (green-blind)
#D2BE51
Tritanopia (blue-blind)
#B8BFAE
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #afc948;
/* rgb */ color: rgb(175, 201, 72);
/* oklch */ color: oklch(79.2% 0.156 119.8);
Tailwind
colors: {
  custom: {
    50: '#cad981',
    500: '#afc948',
    950: '#000000',
  },
}
SCSS
$custom: #afc948;
$custom-light: #cad981;
$custom-dark: #000000;
JSON
{
  "hex": "#afc948",
  "rgb": {
    "r": 175,
    "g": 201,
    "b": 72
  },
  "hsl": {
    "h": 72.093,
    "s": 54.43,
    "l": 53.529
  },
  "oklch": {
    "l": 0.7917,
    "c": 0.15568,
    "h": 119.8
  },
  "luminance": 0.51355
}

Semantic roles & 50–950 ramp

primary
#AFC948
secondary
#46387D
accent
#4ADE68
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140B
muted
#83837E

Preview Lab

Preview with #AFC948

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

Preview Lab → · Contrast checker → · Palette generator →

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