#AFBF4B#AFBF4B

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

Color values

HEX#AFBF4B
RGBrgb(175, 191, 75)
HSLhsl(68, 48%, 52%)
HSVhsv(68, 61%, 75%)
CMYKcmyk(8.4%, 0%, 60.7%, 25.1%)
CIE-LABlab(74.12, -21.45, 55.09)
CIE-LCHlch(74.12, 59.12, 111.27°)
OKLaboklab(76.95% -0.0629 0.1265)
OKLCHoklch(76.95% 0.141 116.5)
XYZxyz(37.5807, 46.8840, 13.7250)
Luminance0.4688 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF4B #5B4BBF
analogous
#BF954B #AFBF4B #75BF4B
triadic
#AFBF4B #4BAFBF #BF4BAF
tetradic
#AFBF4B #4BBF95 #5B4BBF #BF4B75
square
#AFBF4B #4BBF95 #5B4BBF #BF4B75
split-complementary
#AFBF4B #4B75BF #954BBF
monochromatic
#616A26 #8A9736 #AFBF4B #C3CF78 #D7DFA5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBF4B#FFFFFF#000000##000000
##AFBF4B1.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)
#CBB63D
Deuteranopia (green-blind)
#CAB753
Tritanopia (blue-blind)
#B9B5A6
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf4b;
/* rgb */ color: rgb(175, 191, 75);
/* oklch */ color: oklch(76.9% 0.141 116.5);
Tailwind
colors: {
  custom: {
    50: '#c9d282',
    500: '#afbf4b',
    950: '#000000',
  },
}
SCSS
$custom: #afbf4b;
$custom-light: #c9d282;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf4b",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 75
  },
  "hsl": {
    "h": 68.276,
    "s": 47.541,
    "l": 52.157
  },
  "oklch": {
    "l": 0.76946,
    "c": 0.14127,
    "h": 116.5
  },
  "luminance": 0.46884
}

Semantic roles & 50–950 ramp

primary
#AFBF4B
secondary
#A19ACC
accent
#51D763
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFBF4B

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

Preview Lab → · Contrast checker → · Palette generator →

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