#AFAB4B#AFAB4B

#AFAB4B is a light, moderate yellow. Relative luminance 0.387; OKLCH L 72.5% C 0.118 H 106.8°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#AFAB4B
RGBrgb(175, 171, 75)
HSLhsl(58, 40%, 49%)
HSVhsv(58, 57%, 69%)
CMYKcmyk(0%, 2.3%, 57.1%, 31.4%)
CIE-LABlab(68.57, -11.29, 48.95)
CIE-LCHlch(68.57, 50.23, 102.99°)
OKLaboklab(72.51% -0.0342 0.1134)
OKLCHoklch(72.51% 0.118 106.8)
XYZxyz(33.5131, 38.7488, 12.3692)
Luminance0.3875 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB4B #4B4FAF
analogous
#AF794B #AFAB4B #81AF4B
triadic
#AFAB4B #4BAFAB #AB4BAF
tetradic
#AFAB4B #4BAF79 #4B4FAF #AF4B81
square
#AFAB4B #4BAF79 #4B4FAF #AF4B81
split-complementary
#AFAB4B #4B81AF #794BAF
monochromatic
#595726 #848139 #AFAB4B #C3C074 #D6D49F

Accessibility & contrast

On white

2.40
#AFAB4B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#AFAB4B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB4B
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB4B#FFFFFF#000000##000000
##AFAB4B1.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A541
Deuteranopia (green-blind)
#BAA950
Tritanopia (blue-blind)
#BBA196
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab4b;
/* rgb */ color: rgb(175, 171, 75);
/* oklch */ color: oklch(72.5% 0.118 106.8);
Tailwind
colors: {
  custom: {
    50: '#c9c381',
    500: '#afab4b',
    950: '#000000',
  },
}
SCSS
$custom: #afab4b;
$custom-light: #c9c381;
$custom-dark: #000000;
JSON
{
  "hex": "#afab4b",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 75
  },
  "hsl": {
    "h": 57.6,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.72514,
    "c": 0.11843,
    "h": 106.8
  },
  "luminance": 0.38748
}

Semantic roles & 50–950 ramp

primary
#AFAB4B
secondary
#9395C2
accent
#5DD058
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFAB4B

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

Preview Lab → · Contrast checker → · Palette generator →

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