#AFBF4D#AFBF4D

#AFBF4D is a light, vivid yellow. Relative luminance 0.469; OKLCH L 77.0% C 0.140 H 116.5°. Best body text is #000000 at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#AFBF4D
RGBrgb(175, 191, 77)
HSLhsl(68, 47%, 53%)
HSVhsv(68, 60%, 75%)
CMYKcmyk(8.4%, 0%, 59.7%, 25.1%)
CIE-LABlab(74.13, -21.30, 54.24)
CIE-LCHlch(74.13, 58.27, 111.44°)
OKLaboklab(76.97% -0.0623 0.1249)
OKLCHoklch(76.97% 0.14 116.5)
XYZxyz(37.6503, 46.9118, 14.0912)
Luminance0.4691 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF4D #5D4DBF
analogous
#BF964D #AFBF4D #76BF4D
triadic
#AFBF4D #4DAFBF #BF4DAF
tetradic
#AFBF4D #4DBF96 #5D4DBF #BF4D76
square
#AFBF4D #4DBF96 #5D4DBF #BF4D76
split-complementary
#AFBF4D #4D76BF #964DBF
monochromatic
#616B27 #8A9837 #AFBF4D #C3CF7A #D7DFA7

Accessibility & contrast

On white

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

On black

10.38
#AFBF4D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF4D
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF4D#FFFFFF#000000##000000
##AFBF4D1.002.0210.3810.38
#FFFFFF2.021.0021.0021.00
#00000010.3821.001.001.00
##00000010.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB640
Deuteranopia (green-blind)
#CAB754
Tritanopia (blue-blind)
#B9B5A7
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf4d;
/* rgb */ color: rgb(175, 191, 77);
/* oklch */ color: oklch(77.0% 0.140 116.5);
Tailwind
colors: {
  custom: {
    50: '#c9d283',
    500: '#afbf4d',
    950: '#000000',
  },
}
SCSS
$custom: #afbf4d;
$custom-light: #c9d283;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf4d",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 77
  },
  "hsl": {
    "h": 68.421,
    "s": 47.107,
    "l": 52.549
  },
  "oklch": {
    "l": 0.76966,
    "c": 0.13959,
    "h": 116.5
  },
  "luminance": 0.46911
}

Semantic roles & 50–950 ramp

primary
#AFBF4D
secondary
#A29BCD
accent
#51D764
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFBF4D

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

Preview Lab → · Contrast checker → · Palette generator →

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