#AFA85D#AFA85D

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

Color values

HEX#AFA85D
RGBrgb(175, 168, 93)
HSLhsl(55, 34%, 53%)
HSVhsv(55, 47%, 69%)
CMYKcmyk(0%, 4%, 46.9%, 31.4%)
CIE-LABlab(67.95, -8.13, 39.43)
CIE-LCHlch(67.95, 40.26, 101.65°)
OKLaboklab(72.09% -0.0233 0.0944)
OKLCHoklch(72.09% 0.097 103.8)
XYZxyz(33.6584, 37.9105, 15.8982)
Luminance0.3791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA85D #5D64AF
analogous
#AF7F5D #AFA85D #8DAF5D
triadic
#AFA85D #5DAFA8 #A85DAF
tetradic
#AFA85D #5DAF7F #5D64AF #AF5D8D
square
#AFA85D #5DAF7F #5D64AF #AF5D8D
split-complementary
#AFA85D #5D8DAF #7F5DAF
monochromatic
#615D30 #8A8444 #AFA85D #C3BE86 #D7D4AF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA85D#FFFFFF#000000##000000
##AFA85D1.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)
#B4A357
Deuteranopia (green-blind)
#B6A760
Tritanopia (blue-blind)
#BA9F96
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa85d;
/* rgb */ color: rgb(175, 168, 93);
/* oklch */ color: oklch(72.1% 0.097 103.8);
Tailwind
colors: {
  custom: {
    50: '#c8c18c',
    500: '#afa85d',
    950: '#000000',
  },
}
SCSS
$custom: #afa85d;
$custom-light: #c8c18c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa85d",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 93
  },
  "hsl": {
    "h": 54.878,
    "s": 33.884,
    "l": 52.549
  },
  "oklch": {
    "l": 0.72092,
    "c": 0.09726,
    "h": 103.8
  },
  "luminance": 0.3791
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA85D

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

Preview Lab → · Contrast checker → · Palette generator →

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