#AFBC2C#AFBC2C

#AFBC2C is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.0% C 0.159 H 114.8°. Best body text is #000000 at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#AFBC2C
RGBrgb(175, 188, 44)
HSLhsl(65, 62%, 45%)
HSVhsv(65, 77%, 74%)
CMYKcmyk(6.9%, 0%, 76.6%, 26.3%)
CIE-LABlab(73.06, -21.74, 65.75)
CIE-LCHlch(73.06, 69.25, 108.30°)
OKLaboklab(76.04% -0.0667 0.1441)
OKLCHoklch(76.04% 0.159 114.8)
XYZxyz(36.1181, 45.2629, 9.2163)
Luminance0.4526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBC2C #392CBC
analogous
#BC812C #AFBC2C #67BC2C
triadic
#AFBC2C #2CAFBC #BC2CAF
tetradic
#AFBC2C #2CBC81 #392CBC #BC2C67
square
#AFBC2C #2CBC81 #392CBC #BC2C67
split-complementary
#AFBC2C #2C67BC #812CBC
monochromatic
#535915 #818A20 #AFBC2C #CAD64F #D9E181

Accessibility & contrast

On white

2.09
#AFBC2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.05
#AFBC2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBC2C
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBC2C#FFFFFF#000000##000000
##AFBC2C1.002.0910.0510.05
#FFFFFF2.091.0021.0021.00
#00000010.0521.001.001.00
##00000010.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB202
Deuteranopia (green-blind)
#C9B539
Tritanopia (blue-blind)
#BBB1A1
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbc2c;
/* rgb */ color: rgb(175, 188, 44);
/* oklch */ color: oklch(76.0% 0.159 114.8);
Tailwind
colors: {
  custom: {
    50: '#cbd071',
    500: '#afbc2c',
    950: '#000000',
  },
}
SCSS
$custom: #afbc2c;
$custom-light: #cbd071;
$custom-dark: #000000;
JSON
{
  "hex": "#afbc2c",
  "rgb": {
    "r": 175,
    "g": 188,
    "b": 44
  },
  "hsl": {
    "h": 65.417,
    "s": 62.069,
    "l": 45.49
  },
  "oklch": {
    "l": 0.76036,
    "c": 0.15873,
    "h": 114.8
  },
  "luminance": 0.45262
}

Semantic roles & 50–950 ramp

primary
#AFBC2C
secondary
#8179CA
accent
#43E551
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFBC2C

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

Preview Lab → · Contrast checker → · Palette generator →

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