#AFA546#AFA546

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

Color values

HEX#AFA546
RGBrgb(175, 165, 70)
HSLhsl(54, 43%, 48%)
HSVhsv(54, 60%, 69%)
CMYKcmyk(0%, 5.7%, 60%, 31.4%)
CIE-LABlab(66.88, -8.52, 49.36)
CIE-LCHlch(66.88, 50.09, 99.79°)
OKLaboklab(71.15% -0.0269 0.1136)
OKLCHoklch(71.15% 0.117 103.3)
XYZxyz(32.2410, 36.4676, 11.1338)
Luminance0.3647 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA546 #4650AF
analogous
#AF7146 #AFA546 #84AF46
triadic
#AFA546 #46AFA5 #A546AF
tetradic
#AFA546 #46AF71 #4650AF #AF4684
square
#AFA546 #46AF71 #4650AF #AF4684
split-complementary
#AFA546 #4684AF #7146AF
monochromatic
#585323 #837C35 #AFA546 #C5BC6D #D6D099

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA546#FFFFFF#000000##000000
##AFA5461.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)
#B3A03C
Deuteranopia (green-blind)
#B6A54B
Tritanopia (blue-blind)
#BB9B90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa546;
/* rgb */ color: rgb(175, 165, 70);
/* oklch */ color: oklch(71.2% 0.117 103.3);
Tailwind
colors: {
  custom: {
    50: '#c9bf7d',
    500: '#afa546',
    950: '#000000',
  },
}
SCSS
$custom: #afa546;
$custom-light: #c9bf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa546",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 70
  },
  "hsl": {
    "h": 54.286,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.71151,
    "c": 0.11678,
    "h": 103.3
  },
  "luminance": 0.36466
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA546

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

Preview Lab → · Contrast checker → · Palette generator →

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