#AFBF5B#AFBF5B

#AFBF5B is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.1% C 0.127 H 117.0°. Best body text is #000000 at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#AFBF5B
RGBrgb(175, 191, 91)
HSLhsl(70, 44%, 55%)
HSVhsv(70, 52%, 75%)
CMYKcmyk(8.4%, 0%, 52.4%, 25.1%)
CIE-LABlab(74.27, -20.13, 47.99)
CIE-LCHlch(74.27, 52.04, 112.75°)
OKLaboklab(77.12% -0.0576 0.113)
OKLCHoklch(77.12% 0.127 117)
XYZxyz(38.1988, 47.1313, 16.9804)
Luminance0.4713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF5B #6B5BBF
analogous
#BF9D5B #AFBF5B #7DBF5B
triadic
#AFBF5B #5BAFBF #BF5BAF
tetradic
#AFBF5B #5BBF9D #6B5BBF #BF5B7D
square
#AFBF5B #5BBF9D #6B5BBF #BF5B7D
split-complementary
#AFBF5B #5B7DBF #9D5BBF
monochromatic
#68732D #8F9F3E #AFBF5B #C4D087 #DAE1B3

Accessibility & contrast

On white

2.01
#AFBF5B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.43
#AFBF5B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF5B
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF5B#FFFFFF#000000##000000
##AFBF5B1.002.0110.4310.43
#FFFFFF2.011.0021.0021.00
#00000010.4321.001.001.00
##00000010.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB651
Deuteranopia (green-blind)
#C9B761
Tritanopia (blue-blind)
#B8B6A8
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afbf5b;
/* rgb */ color: rgb(175, 191, 91);
/* oklch */ color: oklch(77.1% 0.127 117.0);
Tailwind
colors: {
  custom: {
    50: '#c9d28c',
    500: '#afbf5b',
    950: '#000000',
  },
}
SCSS
$custom: #afbf5b;
$custom-light: #c9d28c;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf5b",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 91
  },
  "hsl": {
    "h": 69.6,
    "s": 43.86,
    "l": 55.294
  },
  "oklch": {
    "l": 0.77124,
    "c": 0.12688,
    "h": 117
  },
  "luminance": 0.47131
}

Semantic roles & 50–950 ramp

primary
#AFBF5B
secondary
#ADA6D0
accent
#54D469
background
#FCFCF8
surface
#F8F9F0
border
#D1D2CB
text
#13140C
muted
#82827D

Preview Lab

Preview with #AFBF5B

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

Preview Lab → · Contrast checker → · Palette generator →

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