#AFA75C#AFA75C

#AFA75C is a light, moderate yellow. Relative luminance 0.375; OKLCH L 71.9% C 0.097 H 103.1°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#AFA75C
RGBrgb(175, 167, 92)
HSLhsl(54, 34%, 52%)
HSVhsv(54, 47%, 69%)
CMYKcmyk(0%, 4.6%, 47.4%, 31.4%)
CIE-LABlab(67.67, -7.70, 39.59)
CIE-LCHlch(67.67, 40.33, 101.00°)
OKLaboklab(71.86% -0.0221 0.0947)
OKLCHoklch(71.86% 0.097 103.1)
XYZxyz(33.4305, 37.5251, 15.6052)
Luminance0.3752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA75C #5C64AF
analogous
#AF7E5C #AFA75C #8DAF5C
triadic
#AFA75C #5CAFA7 #A75CAF
tetradic
#AFA75C #5CAF7E #5C64AF #AF5C8D
square
#AFA75C #5CAF7E #5C64AF #AF5C8D
split-complementary
#AFA75C #5C8DAF #7E5CAF
monochromatic
#615C30 #8A8344 #AFA75C #C3BD85 #D7D3AE

Accessibility & contrast

On white

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

On black

8.50
#AFA75C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA75C
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA75C#FFFFFF#000000##000000
##AFA75C1.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A256
Deuteranopia (green-blind)
#B6A75F
Tritanopia (blue-blind)
#BA9E95
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa75c;
/* rgb */ color: rgb(175, 167, 92);
/* oklch */ color: oklch(71.9% 0.097 103.1);
Tailwind
colors: {
  custom: {
    50: '#c8c18c',
    500: '#afa75c',
    950: '#000000',
  },
}
SCSS
$custom: #afa75c;
$custom-light: #c8c18c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa75c",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 92
  },
  "hsl": {
    "h": 54.217,
    "s": 34.156,
    "l": 52.353
  },
  "oklch": {
    "l": 0.71862,
    "c": 0.09726,
    "h": 103.1
  },
  "luminance": 0.37524
}

Semantic roles & 50–950 ramp

primary
#AFA75C
secondary
#A1A5C5
accent
#68CA5E
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA75C

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

Preview Lab → · Contrast checker → · Palette generator →

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