#AFA85C#AFA85C

#AFA85C is a light, moderate yellow. Relative luminance 0.379; OKLCH L 72.1% C 0.098 H 103.9°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#AFA85C
RGBrgb(175, 168, 92)
HSLhsl(55, 34%, 52%)
HSVhsv(55, 47%, 69%)
CMYKcmyk(0%, 4%, 47.4%, 31.4%)
CIE-LABlab(67.94, -8.23, 39.93)
CIE-LCHlch(67.94, 40.76, 101.64°)
OKLaboklab(72.08% -0.0236 0.0954)
OKLCHoklch(72.08% 0.098 103.9)
XYZxyz(33.6144, 37.8929, 15.6665)
Luminance0.3789 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA85C #5C63AF
analogous
#AF7F5C #AFA85C #8CAF5C
triadic
#AFA85C #5CAFA8 #A85CAF
tetradic
#AFA85C #5CAF7F #5C63AF #AF5C8C
square
#AFA85C #5CAF7F #5C63AF #AF5C8C
split-complementary
#AFA85C #5C8CAF #7F5CAF
monochromatic
#615D30 #8A8444 #AFA85C #C3BE85 #D7D4AE

Accessibility & contrast

On white

2.45
#AFA85C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#AFA85C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA85C
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA85C#FFFFFF#000000##000000
##AFA85C1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A356
Deuteranopia (green-blind)
#B6A75F
Tritanopia (blue-blind)
#BA9F96
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa85c;
/* rgb */ color: rgb(175, 168, 92);
/* oklch */ color: oklch(72.1% 0.098 103.9);
Tailwind
colors: {
  custom: {
    50: '#c8c18c',
    500: '#afa85c',
    950: '#000000',
  },
}
SCSS
$custom: #afa85c;
$custom-light: #c8c18c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa85c",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 92
  },
  "hsl": {
    "h": 54.94,
    "s": 34.156,
    "l": 52.353
  },
  "oklch": {
    "l": 0.72078,
    "c": 0.09833,
    "h": 103.9
  },
  "luminance": 0.37892
}

Semantic roles & 50–950 ramp

primary
#AFA85C
secondary
#A1A4C5
accent
#67CA5E
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA85C

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

Preview Lab → · Contrast checker → · Palette generator →

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