#AFBF5C#AFBF5C

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

Color values

HEX#AFBF5C
RGBrgb(175, 191, 92)
HSLhsl(70, 44%, 55%)
HSVhsv(70, 52%, 75%)
CMYKcmyk(8.4%, 0%, 51.8%, 25.1%)
CIE-LABlab(74.28, -20.03, 47.53)
CIE-LCHlch(74.28, 51.58, 112.86°)
OKLaboklab(77.14% -0.0573 0.1121)
OKLCHoklch(77.14% 0.126 117.1)
XYZxyz(38.2423, 47.1486, 17.2091)
Luminance0.4715 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF5C #6C5CBF
analogous
#BF9D5C #AFBF5C #7DBF5C
triadic
#AFBF5C #5CAFBF #BF5CAF
tetradic
#AFBF5C #5CBF9D #6C5CBF #BF5C7D
square
#AFBF5C #5CBF9D #6C5CBF #BF5C7D
split-complementary
#AFBF5C #5C7DBF #9D5CBF
monochromatic
#68732D #909F3F #AFBF5C #C5D088 #DAE2B4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBF5C#FFFFFF#000000##000000
##AFBF5C1.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)
#CAB653
Deuteranopia (green-blind)
#C9B762
Tritanopia (blue-blind)
#B8B6A9
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afbf5c;
/* rgb */ color: rgb(175, 191, 92);
/* oklch */ color: oklch(77.1% 0.126 117.1);
Tailwind
colors: {
  custom: {
    50: '#c9d28d',
    500: '#afbf5c',
    950: '#000000',
  },
}
SCSS
$custom: #afbf5c;
$custom-light: #c9d28d;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf5c",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 92
  },
  "hsl": {
    "h": 69.697,
    "s": 43.612,
    "l": 55.49
  },
  "oklch": {
    "l": 0.77136,
    "c": 0.1259,
    "h": 117.1
  },
  "luminance": 0.47148
}

Semantic roles & 50–950 ramp

primary
#AFBF5C
secondary
#ADA7D0
accent
#54D369
background
#FCFCF8
surface
#F8F9F0
border
#D1D2CB
text
#13140C
muted
#82827D

Preview Lab

Preview with #AFBF5C

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

Preview Lab → · Contrast checker → · Palette generator →

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