#AFA147#AFA147

#AFA147 is a light, moderate yellow. Relative luminance 0.351; OKLCH L 70.3% C 0.112 H 100.5°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#AFA147
RGBrgb(175, 161, 71)
HSLhsl(52, 42%, 48%)
HSVhsv(52, 59%, 69%)
CMYKcmyk(0%, 8%, 59.4%, 31.4%)
CIE-LABlab(65.80, -6.32, 47.70)
CIE-LCHlch(65.80, 48.11, 97.55°)
OKLaboklab(70.3% -0.0205 0.1102)
OKLCHoklch(70.3% 0.112 100.5)
XYZxyz(31.5626, 35.0599, 11.0647)
Luminance0.3506 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA147 #4755AF
analogous
#AF6D47 #AFA147 #89AF47
triadic
#AFA147 #47AFA1 #A147AF
tetradic
#AFA147 #47AF6D #4755AF #AF4789
square
#AFA147 #47AF6D #4755AF #AF4789
split-complementary
#AFA147 #4789AF #6D47AF
monochromatic
#585124 #837935 #AFA147 #C4B96F #D6CE9A

Accessibility & contrast

On white

2.62
#AFA147 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#AFA147 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA147
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA147#FFFFFF#000000##000000
##AFA1471.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9D3E
Deuteranopia (green-blind)
#B3A24B
Tritanopia (blue-blind)
#BB978D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa147;
/* rgb */ color: rgb(175, 161, 71);
/* oklch */ color: oklch(70.3% 0.112 100.5);
Tailwind
colors: {
  custom: {
    50: '#c9bc7e',
    500: '#afa147',
    950: '#000000',
  },
}
SCSS
$custom: #afa147;
$custom-light: #c9bc7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa147",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 71
  },
  "hsl": {
    "h": 51.923,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.70297,
    "c": 0.1121,
    "h": 100.5
  },
  "luminance": 0.35059
}

Semantic roles & 50–950 ramp

primary
#AFA147
secondary
#8F96C2
accent
#66D256
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA147

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

Preview Lab → · Contrast checker → · Palette generator →

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