#AFA747#AFA747

#AFA747 is a light, moderate yellow. Relative luminance 0.372; OKLCH L 71.6% C 0.118 H 104.5°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#AFA747
RGBrgb(175, 167, 71)
HSLhsl(55, 42%, 48%)
HSVhsv(55, 59%, 69%)
CMYKcmyk(0%, 4.6%, 59.4%, 31.4%)
CIE-LABlab(67.43, -9.50, 49.52)
CIE-LCHlch(67.43, 50.43, 100.86°)
OKLaboklab(71.6% -0.0296 0.1141)
OKLCHoklch(71.6% 0.118 104.5)
XYZxyz(32.6363, 37.2074, 11.4226)
Luminance0.3721 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA747 #474FAF
analogous
#AF7347 #AFA747 #83AF47
triadic
#AFA747 #47AFA7 #A747AF
tetradic
#AFA747 #47AF73 #474FAF #AF4783
square
#AFA747 #47AF73 #474FAF #AF4783
split-complementary
#AFA747 #4783AF #7347AF
monochromatic
#585424 #837D35 #AFA747 #C4BE6F #D6D29A

Accessibility & contrast

On white

2.49
#AFA747 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#AFA747 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA747
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA747#FFFFFF#000000##000000
##AFA7471.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A23D
Deuteranopia (green-blind)
#B7A64C
Tritanopia (blue-blind)
#BB9D92
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa747;
/* rgb */ color: rgb(175, 167, 71);
/* oklch */ color: oklch(71.6% 0.118 104.5);
Tailwind
colors: {
  custom: {
    50: '#c9c07e',
    500: '#afa747',
    950: '#000000',
  },
}
SCSS
$custom: #afa747;
$custom-light: #c9c07e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa747",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 71
  },
  "hsl": {
    "h": 55.385,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.71597,
    "c": 0.11788,
    "h": 104.5
  },
  "luminance": 0.37206
}

Semantic roles & 50–950 ramp

primary
#AFA747
secondary
#8F93C2
accent
#5FD256
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA747

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

Preview Lab → · Contrast checker → · Palette generator →

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