#AFAA5F#AFAA5F

#AFAA5F is a light, moderate yellow. Relative luminance 0.387; OKLCH L 72.6% C 0.097 H 105.2°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#AFAA5F
RGBrgb(175, 170, 95)
HSLhsl(56, 33%, 53%)
HSVhsv(56, 46%, 69%)
CMYKcmyk(0%, 2.9%, 45.7%, 31.4%)
CIE-LABlab(68.53, -8.98, 39.12)
CIE-LCHlch(68.53, 40.14, 102.94°)
OKLaboklab(72.56% -0.0255 0.0939)
OKLCHoklch(72.56% 0.097 105.2)
XYZxyz(34.1202, 38.6906, 16.4949)
Luminance0.3869 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA5F #5F64AF
analogous
#AF825F #AFAA5F #8CAF5F
triadic
#AFAA5F #5FAFAA #AA5FAF
tetradic
#AFAA5F #5FAF82 #5F64AF #AF5F8C
square
#AFAA5F #5FAF82 #5F64AF #AF5F8C
split-complementary
#AFAA5F #5F8CAF #825FAF
monochromatic
#625F31 #8B8746 #AFAA5F #C3C088 #D8D5B1

Accessibility & contrast

On white

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

On black

8.74
#AFAA5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA5F
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA5F#FFFFFF#000000##000000
##AFAA5F1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A559
Deuteranopia (green-blind)
#B8A962
Tritanopia (blue-blind)
#B9A198
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afaa5f;
/* rgb */ color: rgb(175, 170, 95);
/* oklch */ color: oklch(72.6% 0.097 105.2);
Tailwind
colors: {
  custom: {
    50: '#c8c38e',
    500: '#afaa5f',
    950: '#000000',
  },
}
SCSS
$custom: #afaa5f;
$custom-light: #c8c38e;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa5f",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 95
  },
  "hsl": {
    "h": 56.25,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.72555,
    "c": 0.09729,
    "h": 105.2
  },
  "luminance": 0.3869
}

Semantic roles & 50–950 ramp

primary
#AFAA5F
secondary
#A4A6C6
accent
#65C95E
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFAA5F

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

Preview Lab → · Contrast checker → · Palette generator →

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