#AFA75E#AFA75E

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

Color values

HEX#AFA75E
RGBrgb(175, 167, 94)
HSLhsl(54, 34%, 53%)
HSVhsv(54, 46%, 69%)
CMYKcmyk(0%, 4.6%, 46.3%, 31.4%)
CIE-LABlab(67.70, -7.50, 38.61)
CIE-LCHlch(67.70, 39.33, 101.00°)
OKLaboklab(71.89% -0.0213 0.0927)
OKLCHoklch(71.89% 0.095 103)
XYZxyz(33.5191, 37.5605, 16.0717)
Luminance0.3756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA75E #5E66AF
analogous
#AF7E5E #AFA75E #8EAF5E
triadic
#AFA75E #5EAFA7 #A75EAF
tetradic
#AFA75E #5EAF7E #5E66AF #AF5E8E
square
#AFA75E #5EAF7E #5E66AF #AF5E8E
split-complementary
#AFA75E #5E8EAF #7E5EAF
monochromatic
#625D31 #8B8445 #AFA75E #C3BD87 #D8D4B0

Accessibility & contrast

On white

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

On black

8.51
#AFA75E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA75E
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA75E#FFFFFF#000000##000000
##AFA75E1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa75e;
/* rgb */ color: rgb(175, 167, 94);
/* oklch */ color: oklch(71.9% 0.095 103.0);
Tailwind
colors: {
  custom: {
    50: '#c8c18d',
    500: '#afa75e',
    950: '#000000',
  },
}
SCSS
$custom: #afa75e;
$custom-light: #c8c18d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa75e",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 94
  },
  "hsl": {
    "h": 54.074,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.71891,
    "c": 0.0951,
    "h": 103
  },
  "luminance": 0.3756
}

Semantic roles & 50–950 ramp

primary
#AFA75E
secondary
#A3A6C6
accent
#69CA5E
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA75E

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

Preview Lab → · Contrast checker → · Palette generator →

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