#AFBA4D#AFBA4D

#AFBA4D is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.8% C 0.134 H 114.4°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#AFBA4D
RGBrgb(175, 186, 77)
HSLhsl(66, 44%, 52%)
HSVhsv(66, 59%, 73%)
CMYKcmyk(5.9%, 0%, 58.6%, 27.1%)
CIE-LABlab(72.74, -18.81, 52.70)
CIE-LCHlch(72.74, 55.95, 109.64°)
OKLaboklab(75.85% -0.0553 0.1216)
OKLCHoklch(75.85% 0.134 114.4)
XYZxyz(36.5784, 44.7682, 13.7339)
Luminance0.4477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA4D #584DBA
analogous
#BA8F4D #AFBA4D #79BA4D
triadic
#AFBA4D #4DAFBA #BA4DAF
tetradic
#AFBA4D #4DBA8F #584DBA #BA4D79
square
#AFBA4D #4DBA8F #584DBA #BA4D79
split-complementary
#AFBA4D #4D79BA #8F4DBA
monochromatic
#5F6527 #889138 #AFBA4D #C3CB79 #D7DCA5

Accessibility & contrast

On white

2.11
#AFBA4D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.95
#AFBA4D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA4D
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA4D#FFFFFF#000000##000000
##AFBA4D1.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B241
Deuteranopia (green-blind)
#C6B454
Tritanopia (blue-blind)
#B9B0A3
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba4d;
/* rgb */ color: rgb(175, 186, 77);
/* oklch */ color: oklch(75.8% 0.134 114.4);
Tailwind
colors: {
  custom: {
    50: '#c9ce83',
    500: '#afba4d',
    950: '#000000',
  },
}
SCSS
$custom: #afba4d;
$custom-light: #c9ce83;
$custom-dark: #000000;
JSON
{
  "hex": "#afba4d",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 77
  },
  "hsl": {
    "h": 66.055,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.75849,
    "c": 0.13361,
    "h": 114.4
  },
  "luminance": 0.44768
}

Semantic roles & 50–950 ramp

primary
#AFBA4D
secondary
#9E99C9
accent
#54D461
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFBA4D

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

Preview Lab → · Contrast checker → · Palette generator →

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