#AFCB40#AFCB40

#AFCB40 is a light, vivid yellow-green. Relative luminance 0.522; OKLCH L 79.6% C 0.164 H 120.2°. Best body text is #000000 at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#AFCB40
RGBrgb(175, 203, 64)
HSLhsl(72, 57%, 52%)
HSVhsv(72, 68%, 80%)
CMYKcmyk(13.8%, 0%, 68.5%, 20.4%)
CIE-LABlab(77.40, -28.00, 63.01)
CIE-LCHlch(77.40, 68.95, 113.96°)
OKLaboklab(79.56% -0.0823 0.1416)
OKLCHoklch(79.56% 0.164 120.2)
XYZxyz(39.9612, 52.1961, 12.8192)
Luminance0.5220 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCB40 #5C40CB
analogous
#CBA140 #AFCB40 #6ACB40
triadic
#AFCB40 #40AFCB #CB40AF
tetradic
#AFCB40 #40CBA1 #5C40CB #CB406A
square
#AFCB40 #40CBA1 #5C40CB #CB406A
split-complementary
#AFCB40 #406ACB #A140CB
monochromatic
#61721F #8AA22C #AFCB40 #C3D870 #D7E5A0

Accessibility & contrast

On white

1.84
#AFCB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.44
#AFCB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCB40
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCB40#FFFFFF#000000##000000
##AFCB401.001.8411.4411.44
#FFFFFF1.841.0021.0021.00
#00000011.4421.001.001.00
##00000011.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BF2A
Deuteranopia (green-blind)
#D4C04B
Tritanopia (blue-blind)
#B9C0AF
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #afcb40;
/* rgb */ color: rgb(175, 203, 64);
/* oklch */ color: oklch(79.6% 0.164 120.2);
Tailwind
colors: {
  custom: {
    50: '#cada7d',
    500: '#afcb40',
    950: '#000000',
  },
}
SCSS
$custom: #afcb40;
$custom-light: #cada7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afcb40",
  "rgb": {
    "r": 175,
    "g": 203,
    "b": 64
  },
  "hsl": {
    "h": 72.086,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.79557,
    "c": 0.16377,
    "h": 120.2
  },
  "luminance": 0.52196
}

Semantic roles & 50–950 ramp

primary
#AFCB40
secondary
#43357B
accent
#47E066
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #AFCB40

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

Preview Lab → · Contrast checker → · Palette generator →

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