#AFA05F#AFA05F

#AFA05F is a light, moderate yellow. Relative luminance 0.351; OKLCH L 70.4% C 0.087 H 96.7°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#AFA05F
RGBrgb(175, 160, 95)
HSLhsl(49, 33%, 53%)
HSVhsv(49, 46%, 69%)
CMYKcmyk(0%, 8.6%, 45.7%, 31.4%)
CIE-LABlab(65.81, -3.67, 35.75)
CIE-LCHlch(65.81, 35.94, 95.85°)
OKLaboklab(70.4% -0.0102 0.0864)
OKLCHoklch(70.4% 0.087 96.7)
XYZxyz(32.3164, 35.0830, 15.8937)
Luminance0.3508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA05F #5F6EAF
analogous
#AF785F #AFA05F #96AF5F
triadic
#AFA05F #5FAFA0 #A05FAF
tetradic
#AFA05F #5FAF78 #5F6EAF #AF5F96
square
#AFA05F #5FAF78 #5F6EAF #AF5F96
split-complementary
#AFA05F #5F96AF #785FAF
monochromatic
#625931 #8B7E46 #AFA05F #C3B888 #D8D0B1

Accessibility & contrast

On white

2.62
#AFA05F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#AFA05F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA05F
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA05F#FFFFFF#000000##000000
##AFA05F1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9D5A
Deuteranopia (green-blind)
#B0A262
Tritanopia (blue-blind)
#BA9790
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa05f;
/* rgb */ color: rgb(175, 160, 95);
/* oklch */ color: oklch(70.4% 0.087 96.7);
Tailwind
colors: {
  custom: {
    50: '#c8bb8d',
    500: '#afa05f',
    950: '#000000',
  },
}
SCSS
$custom: #afa05f;
$custom-light: #c8bb8d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa05f",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 95
  },
  "hsl": {
    "h": 48.75,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.70404,
    "c": 0.08696,
    "h": 96.7
  },
  "luminance": 0.35082
}

Semantic roles & 50–950 ramp

primary
#AFA05F
secondary
#A4AAC6
accent
#72C95E
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13110C
muted
#82807D

Preview Lab

Preview with #AFA05F

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

Preview Lab → · Contrast checker → · Palette generator →

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