#AFA75B#AFA75B

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

Color values

HEX#AFA75B
RGBrgb(175, 167, 91)
HSLhsl(54, 34%, 52%)
HSVhsv(54, 48%, 69%)
CMYKcmyk(0%, 4.6%, 48%, 31.4%)
CIE-LABlab(67.66, -7.80, 40.08)
CIE-LCHlch(67.66, 40.84, 101.01°)
OKLaboklab(71.85% -0.0225 0.0957)
OKLCHoklch(71.85% 0.098 103.2)
XYZxyz(33.3871, 37.5077, 15.3765)
Luminance0.3751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA75B #5B63AF
analogous
#AF7D5B #AFA75B #8DAF5B
triadic
#AFA75B #5BAFA7 #A75BAF
tetradic
#AFA75B #5BAF7D #5B63AF #AF5B8D
square
#AFA75B #5BAF7D #5B63AF #AF5B8D
split-complementary
#AFA75B #5B8DAF #7D5BAF
monochromatic
#615C2F #8A8343 #AFA75B #C3BD84 #D7D3AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA75B#FFFFFF#000000##000000
##AFA75B1.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)
#B3A255
Deuteranopia (green-blind)
#B6A75E
Tritanopia (blue-blind)
#BA9E95
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa75b;
/* rgb */ color: rgb(175, 167, 91);
/* oklch */ color: oklch(71.8% 0.098 103.2);
Tailwind
colors: {
  custom: {
    50: '#c8c18b',
    500: '#afa75b',
    950: '#000000',
  },
}
SCSS
$custom: #afa75b;
$custom-light: #c8c18b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa75b",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 91
  },
  "hsl": {
    "h": 54.286,
    "s": 34.426,
    "l": 52.157
  },
  "oklch": {
    "l": 0.71847,
    "c": 0.09833,
    "h": 103.2
  },
  "luminance": 0.37507
}

Semantic roles & 50–950 ramp

primary
#AFA75B
secondary
#A1A4C5
accent
#68CB5D
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA75B

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

Preview Lab → · Contrast checker → · Palette generator →

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