#AFCB42#AFCB42

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

Color values

HEX#AFCB42
RGBrgb(175, 203, 66)
HSLhsl(72, 57%, 53%)
HSVhsv(72, 67%, 80%)
CMYKcmyk(13.8%, 0%, 67.5%, 20.4%)
CIE-LABlab(77.41, -27.88, 62.26)
CIE-LCHlch(77.41, 68.22, 114.13°)
OKLaboklab(79.57% -0.0818 0.1403)
OKLCHoklch(79.57% 0.162 120.2)
XYZxyz(40.0192, 52.2193, 13.1243)
Luminance0.5222 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCB42 #5E42CB
analogous
#CBA342 #AFCB42 #6ACB42
triadic
#AFCB42 #42AFCB #CB42AF
tetradic
#AFCB42 #42CBA3 #5E42CB #CB426A
square
#AFCB42 #42CBA3 #5E42CB #CB426A
split-complementary
#AFCB42 #426ACB #A342CB
monochromatic
#627320 #8BA32D #AFCB42 #C3D872 #D8E5A2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFCB42#FFFFFF#000000##000000
##AFCB421.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)
#D7C02E
Deuteranopia (green-blind)
#D4C04D
Tritanopia (blue-blind)
#B9C1B0
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #afcb42;
/* rgb */ color: rgb(175, 203, 66);
/* oklch */ color: oklch(79.6% 0.162 120.2);
Tailwind
colors: {
  custom: {
    50: '#cada7e',
    500: '#afcb42',
    950: '#000000',
  },
}
SCSS
$custom: #afcb42;
$custom-light: #cada7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afcb42",
  "rgb": {
    "r": 175,
    "g": 203,
    "b": 66
  },
  "hsl": {
    "h": 72.263,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.79572,
    "c": 0.16241,
    "h": 120.2
  },
  "luminance": 0.52219
}

Semantic roles & 50–950 ramp

primary
#AFCB42
secondary
#44357C
accent
#48E067
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #AFCB42

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

Preview Lab → · Contrast checker → · Palette generator →

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