#AFBF2C#AFBF2C

#AFBF2C is a light, vivid yellow. Relative luminance 0.466; OKLCH L 76.7% C 0.162 H 115.9°. Best body text is #000000 at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#AFBF2C
RGBrgb(175, 191, 44)
HSLhsl(67, 63%, 46%)
HSVhsv(67, 77%, 75%)
CMYKcmyk(8.4%, 0%, 77%, 25.1%)
CIE-LABlab(73.91, -23.22, 66.52)
CIE-LCHlch(73.91, 70.45, 109.24°)
OKLaboklab(76.71% -0.0708 0.1457)
OKLCHoklch(76.71% 0.162 115.9)
XYZxyz(36.7656, 46.5580, 9.4322)
Luminance0.4656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF2C #3C2CBF
analogous
#BF852C #AFBF2C #65BF2C
triadic
#AFBF2C #2CAFBF #BF2CAF
tetradic
#AFBF2C #2CBF85 #3C2CBF #BF2C65
square
#AFBF2C #2CBF85 #3C2CBF #BF2C65
split-complementary
#AFBF2C #2C65BF #852CBF
monochromatic
#545C15 #818D21 #AFBF2C #C8D751 #D8E283

Accessibility & contrast

On white

2.04
#AFBF2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.31
#AFBF2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF2C
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF2C#FFFFFF#000000##000000
##AFBF2C1.002.0410.3110.31
#FFFFFF2.041.0021.0021.00
#00000010.3121.001.001.00
##00000010.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB500
Deuteranopia (green-blind)
#CBB73A
Tritanopia (blue-blind)
#BAB4A4
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf2c;
/* rgb */ color: rgb(175, 191, 44);
/* oklch */ color: oklch(76.7% 0.162 115.9);
Tailwind
colors: {
  custom: {
    50: '#cbd272',
    500: '#afbf2c',
    950: '#000000',
  },
}
SCSS
$custom: #afbf2c;
$custom-light: #cbd272;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf2c",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 44
  },
  "hsl": {
    "h": 66.531,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.76711,
    "c": 0.16196,
    "h": 115.9
  },
  "luminance": 0.46557
}

Semantic roles & 50–950 ramp

primary
#AFBF2C
secondary
#847BCC
accent
#42E654
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBF2C

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

Preview Lab → · Contrast checker → · Palette generator →

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