#AFAB4E#AFAB4E

#AFAB4E is a light, moderate yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.116 H 106.7°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#AFAB4E
RGBrgb(175, 171, 78)
HSLhsl(58, 38%, 50%)
HSVhsv(58, 55%, 69%)
CMYKcmyk(0%, 2.3%, 55.4%, 31.4%)
CIE-LABlab(68.60, -11.05, 47.57)
CIE-LCHlch(68.60, 48.84, 103.08°)
OKLaboklab(72.55% -0.0332 0.1108)
OKLCHoklch(72.55% 0.116 106.7)
XYZxyz(33.6182, 38.7908, 12.9227)
Luminance0.3879 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB4E #4E52AF
analogous
#AF7B4E #AFAB4E #83AF4E
triadic
#AFAB4E #4EAFAB #AB4EAF
tetradic
#AFAB4E #4EAF7B #4E52AF #AF4E83
square
#AFAB4E #4EAF7B #4E52AF #AF4E83
split-complementary
#AFAB4E #4E83AF #7B4EAF
monochromatic
#5A5828 #85823B #AFAB4E #C3C078 #D6D3A2

Accessibility & contrast

On white

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

On black

8.76
#AFAB4E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB4E
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB4E#FFFFFF#000000##000000
##AFAB4E1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A545
Deuteranopia (green-blind)
#BAA953
Tritanopia (blue-blind)
#BAA196
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab4e;
/* rgb */ color: rgb(175, 171, 78);
/* oklch */ color: oklch(72.5% 0.116 106.7);
Tailwind
colors: {
  custom: {
    50: '#c9c383',
    500: '#afab4e',
    950: '#000000',
  },
}
SCSS
$custom: #afab4e;
$custom-light: #c9c383;
$custom-dark: #000000;
JSON
{
  "hex": "#afab4e",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 78
  },
  "hsl": {
    "h": 57.526,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.72548,
    "c": 0.11566,
    "h": 106.7
  },
  "luminance": 0.3879
}

Semantic roles & 50–950 ramp

primary
#AFAB4E
secondary
#9698C3
accent
#5ECE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAB4E

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

Preview Lab → · Contrast checker → · Palette generator →

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