#AFA047#AFA047

#AFA047 is a light, moderate yellow. Relative luminance 0.347; OKLCH L 70.1% C 0.111 H 99.8°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#AFA047
RGBrgb(175, 160, 71)
HSLhsl(51, 42%, 48%)
HSVhsv(51, 59%, 69%)
CMYKcmyk(0%, 8.6%, 59.4%, 31.4%)
CIE-LABlab(65.52, -5.79, 47.39)
CIE-LCHlch(65.52, 47.74, 96.97°)
OKLaboklab(70.08% -0.019 0.1096)
OKLCHoklch(70.08% 0.111 99.8)
XYZxyz(31.3885, 34.7118, 11.0067)
Luminance0.3471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA047 #4756AF
analogous
#AF6C47 #AFA047 #8AAF47
triadic
#AFA047 #47AFA0 #A047AF
tetradic
#AFA047 #47AF6C #4756AF #AF478A
square
#AFA047 #47AF6C #4756AF #AF478A
split-complementary
#AFA047 #478AAF #6C47AF
monochromatic
#585024 #837835 #AFA047 #C4B86F #D6CD9A

Accessibility & contrast

On white

2.64
#AFA047 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#AFA047 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA047
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA047#FFFFFF#000000##000000
##AFA0471.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9C3E
Deuteranopia (green-blind)
#B2A24B
Tritanopia (blue-blind)
#BC968C
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa047;
/* rgb */ color: rgb(175, 160, 71);
/* oklch */ color: oklch(70.1% 0.111 99.8);
Tailwind
colors: {
  custom: {
    50: '#c9bb7d',
    500: '#afa047',
    950: '#000000',
  },
}
SCSS
$custom: #afa047;
$custom-light: #c9bb7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa047",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 71
  },
  "hsl": {
    "h": 51.346,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.70081,
    "c": 0.11118,
    "h": 99.8
  },
  "luminance": 0.34711
}

Semantic roles & 50–950 ramp

primary
#AFA047
secondary
#8F97C2
accent
#68D256
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#14110A
muted
#82807C

Preview Lab

Preview with #AFA047

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

Preview Lab → · Contrast checker → · Palette generator →

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