#AFA545#AFA545

#AFA545 is a light, moderate yellow. Relative luminance 0.365; OKLCH L 71.1% C 0.118 H 103.4°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#AFA545
RGBrgb(175, 165, 69)
HSLhsl(54, 43%, 48%)
HSVhsv(54, 61%, 69%)
CMYKcmyk(0%, 5.7%, 60.6%, 31.4%)
CIE-LABlab(66.87, -8.59, 49.81)
CIE-LCHlch(66.87, 50.55, 99.78°)
OKLaboklab(71.14% -0.0272 0.1145)
OKLCHoklch(71.14% 0.118 103.4)
XYZxyz(32.2097, 36.4551, 10.9689)
Luminance0.3645 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA545 #454FAF
analogous
#AF7045 #AFA545 #84AF45
triadic
#AFA545 #45AFA5 #A545AF
tetradic
#AFA545 #45AF70 #454FAF #AF4584
square
#AFA545 #45AF70 #454FAF #AF4584
split-complementary
#AFA545 #4584AF #7045AF
monochromatic
#575222 #837C34 #AFA545 #C5BD6C #D6D198

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA545#FFFFFF#000000##000000
##AFA5451.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)
#B3A03A
Deuteranopia (green-blind)
#B6A54A
Tritanopia (blue-blind)
#BB9A90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa545;
/* rgb */ color: rgb(175, 165, 69);
/* oklch */ color: oklch(71.1% 0.118 103.4);
Tailwind
colors: {
  custom: {
    50: '#c9bf7d',
    500: '#afa545',
    950: '#000000',
  },
}
SCSS
$custom: #afa545;
$custom-light: #c9bf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa545",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 69
  },
  "hsl": {
    "h": 54.34,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.71141,
    "c": 0.11765,
    "h": 103.4
  },
  "luminance": 0.36454
}

Semantic roles & 50–950 ramp

primary
#AFA545
secondary
#8D92C2
accent
#61D355
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA545

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

Preview Lab → · Contrast checker → · Palette generator →

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