#AFCF5B#AFCF5B

#AFCF5B is a light, vivid yellow-green. Relative luminance 0.545; OKLCH L 80.7% C 0.148 H 122.6°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#AFCF5B
RGBrgb(175, 207, 91)
HSLhsl(77, 55%, 58%)
HSVhsv(77, 56%, 81%)
CMYKcmyk(15.5%, 0%, 56%, 18.8%)
CIE-LABlab(78.75, -27.93, 53.17)
CIE-LCHlch(78.75, 60.06, 117.71°)
OKLaboklab(80.72% -0.0795 0.1242)
OKLCHoklch(80.72% 0.148 122.6)
XYZxyz(41.8806, 54.4948, 18.2077)
Luminance0.5450 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCF5B #7B5BCF
analogous
#CFB55B #AFCF5B #75CF5B
triadic
#AFCF5B #5BAFCF #CF5BAF
tetradic
#AFCF5B #5BCFB5 #7B5BCF #CF5B75
square
#AFCF5B #5BCFB5 #7B5BCF #CF5B75
split-complementary
#AFCF5B #5B75CF #B55BCF
monochromatic
#6D8828 #93B736 #AFCF5B #C6DD8A #DDEBBA

Accessibility & contrast

On white

1.76
#AFCF5B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.90
#AFCF5B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCF5B
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCF5B#FFFFFF#000000##000000
##AFCF5B1.001.7611.9011.90
#FFFFFF1.761.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC44F
Deuteranopia (green-blind)
#D6C362
Tritanopia (blue-blind)
#B7C6B6
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #afcf5b;
/* rgb */ color: rgb(175, 207, 91);
/* oklch */ color: oklch(80.7% 0.148 122.6);
Tailwind
colors: {
  custom: {
    50: '#c9dd8d',
    500: '#afcf5b',
    950: '#000000',
  },
}
SCSS
$custom: #afcf5b;
$custom-light: #c9dd8d;
$custom-dark: #000000;
JSON
{
  "hex": "#afcf5b",
  "rgb": {
    "r": 175,
    "g": 207,
    "b": 91
  },
  "hsl": {
    "h": 76.552,
    "s": 54.717,
    "l": 58.431
  },
  "oklch": {
    "l": 0.80718,
    "c": 0.14751,
    "h": 122.6
  },
  "luminance": 0.54495
}

Semantic roles & 50–950 ramp

primary
#AFCF5B
secondary
#55408F
accent
#4ADE73
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFCF5B

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

Preview Lab → · Contrast checker → · Palette generator →

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