#AFA75F#AFA75F

#AFA75F is a light, moderate yellow. Relative luminance 0.376; OKLCH L 71.9% C 0.094 H 102.9°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#AFA75F
RGBrgb(175, 167, 95)
HSLhsl(54, 33%, 53%)
HSVhsv(54, 46%, 69%)
CMYKcmyk(0%, 4.6%, 45.7%, 31.4%)
CIE-LABlab(67.71, -7.40, 38.11)
CIE-LCHlch(67.71, 38.82, 100.99°)
OKLaboklab(71.91% -0.021 0.0916)
OKLCHoklch(71.91% 0.094 102.9)
XYZxyz(33.5643, 37.5786, 16.3096)
Luminance0.3758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA75F #5F67AF
analogous
#AF7F5F #AFA75F #8FAF5F
triadic
#AFA75F #5FAFA7 #A75FAF
tetradic
#AFA75F #5FAF7F #5F67AF #AF5F8F
square
#AFA75F #5FAF7F #5F67AF #AF5F8F
split-complementary
#AFA75F #5F8FAF #7F5FAF
monochromatic
#625D31 #8B8446 #AFA75F #C3BD88 #D8D4B1

Accessibility & contrast

On white

2.47
#AFA75F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#AFA75F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA75F
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA75F#FFFFFF#000000##000000
##AFA75F1.002.478.528.52
#FFFFFF2.471.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A359
Deuteranopia (green-blind)
#B5A762
Tritanopia (blue-blind)
#BA9E96
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa75f;
/* rgb */ color: rgb(175, 167, 95);
/* oklch */ color: oklch(71.9% 0.094 102.9);
Tailwind
colors: {
  custom: {
    50: '#c8c18e',
    500: '#afa75f',
    950: '#000000',
  },
}
SCSS
$custom: #afa75f;
$custom-light: #c8c18e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa75f",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 95
  },
  "hsl": {
    "h": 54,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.71906,
    "c": 0.094,
    "h": 102.9
  },
  "luminance": 0.37578
}

Semantic roles & 50–950 ramp

primary
#AFA75F
secondary
#A4A7C6
accent
#69C95E
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA75F

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

Preview Lab → · Contrast checker → · Palette generator →

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