#AFBF4A#AFBF4A

#AFBF4A is a light, vivid yellow. Relative luminance 0.469; OKLCH L 76.9% C 0.142 H 116.4°. Best body text is #000000 at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#AFBF4A
RGBrgb(175, 191, 74)
HSLhsl(68, 48%, 52%)
HSVhsv(68, 61%, 75%)
CMYKcmyk(8.4%, 0%, 61.3%, 25.1%)
CIE-LABlab(74.11, -21.52, 55.51)
CIE-LCHlch(74.11, 59.54, 111.19°)
OKLaboklab(76.94% -0.0632 0.1272)
OKLCHoklch(76.94% 0.142 116.4)
XYZxyz(37.5468, 46.8704, 13.5462)
Luminance0.4687 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF4A #5A4ABF
analogous
#BF954A #AFBF4A #75BF4A
triadic
#AFBF4A #4AAFBF #BF4AAF
tetradic
#AFBF4A #4ABF95 #5A4ABF #BF4A75
square
#AFBF4A #4ABF95 #5A4ABF #BF4A75
split-complementary
#AFBF4A #4A75BF #954ABF
monochromatic
#606925 #899735 #AFBF4A #C3CF77 #D7DFA4

Accessibility & contrast

On white

2.02
#AFBF4A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.37
#AFBF4A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF4A
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF4A#FFFFFF#000000##000000
##AFBF4A1.002.0210.3710.37
#FFFFFF2.021.0021.0021.00
#00000010.3721.001.001.00
##00000010.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB63C
Deuteranopia (green-blind)
#CAB752
Tritanopia (blue-blind)
#B9B5A6
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf4a;
/* rgb */ color: rgb(175, 191, 74);
/* oklch */ color: oklch(76.9% 0.142 116.4);
Tailwind
colors: {
  custom: {
    50: '#c9d281',
    500: '#afbf4a',
    950: '#000000',
  },
}
SCSS
$custom: #afbf4a;
$custom-light: #c9d281;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf4a",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 74
  },
  "hsl": {
    "h": 68.205,
    "s": 47.755,
    "l": 51.961
  },
  "oklch": {
    "l": 0.76936,
    "c": 0.14208,
    "h": 116.4
  },
  "luminance": 0.4687
}

Semantic roles & 50–950 ramp

primary
#AFBF4A
secondary
#A099CC
accent
#50D763
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFBF4A

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

Preview Lab → · Contrast checker → · Palette generator →

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