#AFB76F#AFB76F

#AFB76F is a light, moderate yellow. Relative luminance 0.441; OKLCH L 75.6% C 0.095 H 113.9°. Best body text is #000000 at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#AFB76F
RGBrgb(175, 183, 111)
HSLhsl(67, 33%, 58%)
HSVhsv(67, 39%, 72%)
CMYKcmyk(4.4%, 0%, 39.3%, 28.2%)
CIE-LABlab(72.31, -14.01, 35.66)
CIE-LCHlch(72.31, 38.31, 111.44°)
OKLaboklab(75.64% -0.0385 0.0871)
OKLCHoklch(75.64% 0.095 113.9)
XYZxyz(37.4822, 44.1291, 21.5791)
Luminance0.4413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB76F #776FB7
analogous
#B79B6F #AFB76F #8BB76F
triadic
#AFB76F #6FAFB7 #B76FAF
tetradic
#AFB76F #6FB79B #776FB7 #B76F8B
square
#AFB76F #6FB79B #776FB7 #B76F8B
split-complementary
#AFB76F #6F8BB7 #9B6FB7
monochromatic
#6C7239 #939B4E #AFB76F #C6CB98 #DCE0C1

Accessibility & contrast

On white

2.14
#AFB76F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.83
#AFB76F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB76F
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB76F#FFFFFF#000000##000000
##AFB76F1.002.149.839.83
#FFFFFF2.141.0021.0021.00
#0000009.8321.001.001.00
##0000009.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1B16A
Deuteranopia (green-blind)
#C0B272
Tritanopia (blue-blind)
#B7AFA5
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb76f;
/* rgb */ color: rgb(175, 183, 111);
/* oklch */ color: oklch(75.6% 0.095 113.9);
Tailwind
colors: {
  custom: {
    50: '#c8cc99',
    500: '#afb76f',
    950: '#000000',
  },
}
SCSS
$custom: #afb76f;
$custom-light: #c8cc99;
$custom-dark: #000000;
JSON
{
  "hex": "#afb76f",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 111
  },
  "hsl": {
    "h": 66.667,
    "s": 33.333,
    "l": 57.647
  },
  "oklch": {
    "l": 0.75642,
    "c": 0.0952,
    "h": 113.9
  },
  "luminance": 0.44129
}

Semantic roles & 50–950 ramp

primary
#AFB76F
secondary
#B6B2CF
accent
#5EC96A
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFB76F

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

Preview Lab → · Contrast checker → · Palette generator →

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