#AFA55C#AFA55C

#AFA55C is a light, moderate yellow. Relative luminance 0.368; OKLCH L 71.4% C 0.095 H 101.6°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#AFA55C
RGBrgb(175, 165, 92)
HSLhsl(53, 34%, 52%)
HSVhsv(53, 47%, 69%)
CMYKcmyk(0%, 5.7%, 47.4%, 31.4%)
CIE-LABlab(67.13, -6.64, 38.93)
CIE-LCHlch(67.13, 39.49, 99.68°)
OKLaboklab(71.43% -0.0191 0.0932)
OKLCHoklch(71.43% 0.095 101.6)
XYZxyz(33.0669, 36.7980, 15.4840)
Luminance0.3680 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA55C #5C66AF
analogous
#AF7C5C #AFA55C #90AF5C
triadic
#AFA55C #5CAFA5 #A55CAF
tetradic
#AFA55C #5CAF7C #5C66AF #AF5C90
square
#AFA55C #5CAF7C #5C66AF #AF5C90
split-complementary
#AFA55C #5C90AF #7C5CAF
monochromatic
#615B30 #8A8244 #AFA55C #C3BC85 #D7D2AE

Accessibility & contrast

On white

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

On black

8.36
#AFA55C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA55C
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA55C#FFFFFF#000000##000000
##AFA55C1.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa55c;
/* rgb */ color: rgb(175, 165, 92);
/* oklch */ color: oklch(71.4% 0.095 101.6);
Tailwind
colors: {
  custom: {
    50: '#c8bf8c',
    500: '#afa55c',
    950: '#000000',
  },
}
SCSS
$custom: #afa55c;
$custom-light: #c8bf8c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa55c",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 92
  },
  "hsl": {
    "h": 52.771,
    "s": 34.156,
    "l": 52.353
  },
  "oklch": {
    "l": 0.7143,
    "c": 0.09517,
    "h": 101.6
  },
  "luminance": 0.36797
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA55C

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

Preview Lab → · Contrast checker → · Palette generator →

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