#AFA55E#AFA55E

#AFA55E is a light, moderate yellow. Relative luminance 0.368; OKLCH L 71.5% C 0.093 H 101.3°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#AFA55E
RGBrgb(175, 165, 94)
HSLhsl(53, 34%, 53%)
HSVhsv(53, 46%, 69%)
CMYKcmyk(0%, 5.7%, 46.3%, 31.4%)
CIE-LABlab(67.15, -6.44, 37.93)
CIE-LCHlch(67.15, 38.48, 99.64°)
OKLaboklab(71.46% -0.0183 0.0912)
OKLCHoklch(71.46% 0.093 101.3)
XYZxyz(33.1555, 36.8334, 15.9506)
Luminance0.3683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA55E #5E68AF
analogous
#AF7D5E #AFA55E #90AF5E
triadic
#AFA55E #5EAFA5 #A55EAF
tetradic
#AFA55E #5EAF7D #5E68AF #AF5E90
square
#AFA55E #5EAF7D #5E68AF #AF5E90
split-complementary
#AFA55E #5E90AF #7D5EAF
monochromatic
#625C31 #8B8245 #AFA55E #C3BC87 #D8D3B0

Accessibility & contrast

On white

2.51
#AFA55E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#AFA55E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA55E
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA55E#FFFFFF#000000##000000
##AFA55E1.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A158
Deuteranopia (green-blind)
#B4A561
Tritanopia (blue-blind)
#BA9C94
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa55e;
/* rgb */ color: rgb(175, 165, 94);
/* oklch */ color: oklch(71.5% 0.093 101.3);
Tailwind
colors: {
  custom: {
    50: '#c8bf8d',
    500: '#afa55e',
    950: '#000000',
  },
}
SCSS
$custom: #afa55e;
$custom-light: #c8bf8d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa55e",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 94
  },
  "hsl": {
    "h": 52.593,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.7146,
    "c": 0.09299,
    "h": 101.3
  },
  "luminance": 0.36832
}

Semantic roles & 50–950 ramp

primary
#AFA55E
secondary
#A3A7C6
accent
#6BCA5E
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA55E

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

Preview Lab → · Contrast checker → · Palette generator →

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