#AFAB7B#AFAB7B

#AFAB7B is a light, moderate yellow. Relative luminance 0.397; OKLCH L 73.3% C 0.065 H 103.9°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#AFAB7B
RGBrgb(175, 171, 123)
HSLhsl(55, 25%, 58%)
HSVhsv(55, 30%, 69%)
CMYKcmyk(0%, 2.3%, 29.7%, 31.4%)
CIE-LABlab(69.23, -6.24, 25.30)
CIE-LCHlch(69.23, 26.06, 103.85°)
OKLaboklab(73.26% -0.0156 0.0634)
OKLCHoklch(73.26% 0.065 103.9)
XYZxyz(35.8175, 39.6705, 24.5054)
Luminance0.3967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB7B #7B7FAF
analogous
#AF917B #AFAB7B #99AF7B
triadic
#AFAB7B #7BAFAB #AB7BAF
tetradic
#AFAB7B #7BAF91 #7B7FAF #AF7B99
square
#AFAB7B #7BAF91 #7B7FAF #AF7B99
split-complementary
#AFAB7B #7B99AF #917BAF
monochromatic
#6D6A42 #938F59 #AFAB7B #C6C3A1 #DDDBC7

Accessibility & contrast

On white

2.35
#AFAB7B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#AFAB7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB7B
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB7B#FFFFFF#000000##000000
##AFAB7B1.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A778
Deuteranopia (green-blind)
#B5AA7D
Tritanopia (blue-blind)
#B7A59E
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afab7b;
/* rgb */ color: rgb(175, 171, 123);
/* oklch */ color: oklch(73.3% 0.065 103.9);
Tailwind
colors: {
  custom: {
    50: '#c7c3a1',
    500: '#afab7b',
    950: '#000000',
  },
}
SCSS
$custom: #afab7b;
$custom-light: #c7c3a1;
$custom-dark: #000000;
JSON
{
  "hex": "#afab7b",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 123
  },
  "hsl": {
    "h": 55.385,
    "s": 24.528,
    "l": 58.431
  },
  "oklch": {
    "l": 0.73259,
    "c": 0.06526,
    "h": 103.9
  },
  "luminance": 0.3967
}

Semantic roles & 50–950 ramp

primary
#AFAB7B
secondary
#B9BACD
accent
#6EC167
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120F
muted
#82817E

Preview Lab

Preview with #AFAB7B

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

Preview Lab → · Contrast checker → · Palette generator →

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