#AFA45C#AFA45C

#AFA45C is a light, moderate yellow. Relative luminance 0.364; OKLCH L 71.2% C 0.094 H 100.7°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#AFA45C
RGBrgb(175, 164, 92)
HSLhsl(52, 34%, 52%)
HSVhsv(52, 47%, 69%)
CMYKcmyk(0%, 6.3%, 47.4%, 31.4%)
CIE-LABlab(66.85, -6.11, 38.59)
CIE-LCHlch(66.85, 39.07, 98.99°)
OKLaboklab(71.21% -0.0175 0.0925)
OKLCHoklch(71.21% 0.094 100.7)
XYZxyz(32.8873, 36.4387, 15.4241)
Luminance0.3644 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA45C #5C67AF
analogous
#AF7B5C #AFA45C #91AF5C
triadic
#AFA45C #5CAFA4 #A45CAF
tetradic
#AFA45C #5CAF7B #5C67AF #AF5C91
square
#AFA45C #5CAF7B #5C67AF #AF5C91
split-complementary
#AFA45C #5C91AF #7B5CAF
monochromatic
#615A30 #8A8144 #AFA45C #C3BB85 #D7D2AE

Accessibility & contrast

On white

2.53
#AFA45C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#AFA45C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA45C
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA45C#FFFFFF#000000##000000
##AFA45C1.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A056
Deuteranopia (green-blind)
#B3A55F
Tritanopia (blue-blind)
#BA9B93
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa45c;
/* rgb */ color: rgb(175, 164, 92);
/* oklch */ color: oklch(71.2% 0.094 100.7);
Tailwind
colors: {
  custom: {
    50: '#c8be8b',
    500: '#afa45c',
    950: '#000000',
  },
}
SCSS
$custom: #afa45c;
$custom-light: #c8be8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa45c",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 92
  },
  "hsl": {
    "h": 52.048,
    "s": 34.156,
    "l": 52.353
  },
  "oklch": {
    "l": 0.71215,
    "c": 0.09415,
    "h": 100.7
  },
  "luminance": 0.36438
}

Semantic roles & 50–950 ramp

primary
#AFA45C
secondary
#A1A6C5
accent
#6CCA5E
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA45C

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

Preview Lab → · Contrast checker → · Palette generator →

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