#AFA45A#AFA45A

#AFA45A is a light, moderate yellow. Relative luminance 0.364; OKLCH L 71.2% C 0.096 H 101.0°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#AFA45A
RGBrgb(175, 164, 90)
HSLhsl(52, 35%, 52%)
HSVhsv(52, 49%, 69%)
CMYKcmyk(0%, 6.3%, 48.6%, 31.4%)
CIE-LABlab(66.83, -6.30, 39.58)
CIE-LCHlch(66.83, 40.08, 99.05°)
OKLaboklab(71.19% -0.0183 0.0945)
OKLCHoklch(71.19% 0.096 101)
XYZxyz(32.8010, 36.4042, 14.9698)
Luminance0.3640 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA45A #5A65AF
analogous
#AF7A5A #AFA45A #90AF5A
triadic
#AFA45A #5AAFA4 #A45AAF
tetradic
#AFA45A #5AAF7A #5A65AF #AF5A90
square
#AFA45A #5AAF7A #5A65AF #AF5A90
split-complementary
#AFA45A #5A90AF #7A5AAF
monochromatic
#605A2F #898043 #AFA45A #C3BB83 #D7D1AC

Accessibility & contrast

On white

2.54
#AFA45A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#AFA45A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA45A
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA45A#FFFFFF#000000##000000
##AFA45A1.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa45a;
/* rgb */ color: rgb(175, 164, 90);
/* oklch */ color: oklch(71.2% 0.096 101.0);
Tailwind
colors: {
  custom: {
    50: '#c9be8a',
    500: '#afa45a',
    950: '#000000',
  },
}
SCSS
$custom: #afa45a;
$custom-light: #c9be8a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa45a",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 90
  },
  "hsl": {
    "h": 52.235,
    "s": 34.694,
    "l": 51.961
  },
  "oklch": {
    "l": 0.71186,
    "c": 0.09629,
    "h": 101
  },
  "luminance": 0.36403
}

Semantic roles & 50–950 ramp

primary
#AFA45A
secondary
#A0A5C5
accent
#6BCB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA45A

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

Preview Lab → · Contrast checker → · Palette generator →

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