#AFA55A#AFA55A

#AFA55A is a light, moderate yellow. Relative luminance 0.368; OKLCH L 71.4% C 0.097 H 101.8°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#AFA55A
RGBrgb(175, 165, 90)
HSLhsl(53, 35%, 52%)
HSVhsv(53, 49%, 69%)
CMYKcmyk(0%, 5.7%, 48.6%, 31.4%)
CIE-LABlab(67.10, -6.83, 39.91)
CIE-LCHlch(67.10, 40.49, 99.72°)
OKLaboklab(71.4% -0.0198 0.0953)
OKLCHoklch(71.4% 0.097 101.8)
XYZxyz(32.9807, 36.7635, 15.0296)
Luminance0.3676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA55A #5A64AF
analogous
#AF7B5A #AFA55A #8FAF5A
triadic
#AFA55A #5AAFA5 #A55AAF
tetradic
#AFA55A #5AAF7B #5A64AF #AF5A8F
square
#AFA55A #5AAF7B #5A64AF #AF5A8F
split-complementary
#AFA55A #5A8FAF #7B5AAF
monochromatic
#605A2F #898143 #AFA55A #C3BB83 #D7D2AC

Accessibility & contrast

On white

2.51
#AFA55A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#AFA55A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA55A
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA55A#FFFFFF#000000##000000
##AFA55A1.002.518.358.35
#FFFFFF2.511.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A154
Deuteranopia (green-blind)
#B4A55D
Tritanopia (blue-blind)
#BA9C93
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa55a;
/* rgb */ color: rgb(175, 165, 90);
/* oklch */ color: oklch(71.4% 0.097 101.8);
Tailwind
colors: {
  custom: {
    50: '#c9bf8a',
    500: '#afa55a',
    950: '#000000',
  },
}
SCSS
$custom: #afa55a;
$custom-light: #c9bf8a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa55a",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 90
  },
  "hsl": {
    "h": 52.941,
    "s": 34.694,
    "l": 51.961
  },
  "oklch": {
    "l": 0.71401,
    "c": 0.09731,
    "h": 101.8
  },
  "luminance": 0.36762
}

Semantic roles & 50–950 ramp

primary
#AFA55A
secondary
#A0A4C5
accent
#6ACB5D
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA55A

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

Preview Lab → · Contrast checker → · Palette generator →

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