#AFC945#AFC945

#AFC945 is a light, vivid yellow-green. Relative luminance 0.513; OKLCH L 79.1% C 0.158 H 119.7°. Best body text is #000000 at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#AFC945
RGBrgb(175, 201, 69)
HSLhsl(72, 55%, 53%)
HSVhsv(72, 66%, 79%)
CMYKcmyk(12.9%, 0%, 65.7%, 21.2%)
CIE-LABlab(76.87, -26.74, 60.53)
CIE-LCHlch(76.87, 66.17, 113.83°)
OKLaboklab(79.14% -0.0783 0.1371)
OKLCHoklch(79.14% 0.158 119.7)
XYZxyz(39.6407, 51.3171, 13.4460)
Luminance0.5132 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC945 #5F45C9
analogous
#C9A145 #AFC945 #6DC945
triadic
#AFC945 #45AFC9 #C945AF
tetradic
#AFC945 #45C9A1 #5F45C9 #C9456D
square
#AFC945 #45C9A1 #5F45C9 #C9456D
split-complementary
#AFC945 #456DC9 #A145C9
monochromatic
#627221 #8BA22F #AFC945 #C3D774 #D8E5A4

Accessibility & contrast

On white

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

On black

11.26
#AFC945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC945
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC945#FFFFFF#000000##000000
##AFC9451.001.8611.2611.26
#FFFFFF1.861.0021.0021.00
#00000011.2621.001.001.00
##00000011.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE33
Deuteranopia (green-blind)
#D2BE4F
Tritanopia (blue-blind)
#B9BFAE
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #afc945;
/* rgb */ color: rgb(175, 201, 69);
/* oklch */ color: oklch(79.1% 0.158 119.7);
Tailwind
colors: {
  custom: {
    50: '#cad97f',
    500: '#afc945',
    950: '#000000',
  },
}
SCSS
$custom: #afc945;
$custom-light: #cad97f;
$custom-dark: #000000;
JSON
{
  "hex": "#afc945",
  "rgb": {
    "r": 175,
    "g": 201,
    "b": 69
  },
  "hsl": {
    "h": 71.818,
    "s": 55,
    "l": 52.941
  },
  "oklch": {
    "l": 0.79144,
    "c": 0.1579,
    "h": 119.7
  },
  "luminance": 0.51317
}

Semantic roles & 50–950 ramp

primary
#AFC945
secondary
#44377B
accent
#49DE67
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140B
muted
#83837E

Preview Lab

Preview with #AFC945

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

Preview Lab → · Contrast checker → · Palette generator →

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