#AFA647#AFA647

#AFA647 is a light, moderate yellow. Relative luminance 0.368; OKLCH L 71.4% C 0.117 H 103.9°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#AFA647
RGBrgb(175, 166, 71)
HSLhsl(55, 42%, 48%)
HSVhsv(55, 59%, 69%)
CMYKcmyk(0%, 5.1%, 59.4%, 31.4%)
CIE-LABlab(67.16, -8.97, 49.22)
CIE-LCHlch(67.16, 50.03, 100.33°)
OKLaboklab(71.38% -0.0281 0.1135)
OKLCHoklch(71.38% 0.117 103.9)
XYZxyz(32.4539, 36.8425, 11.3618)
Luminance0.3684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA647 #4750AF
analogous
#AF7247 #AFA647 #84AF47
triadic
#AFA647 #47AFA6 #A647AF
tetradic
#AFA647 #47AF72 #4750AF #AF4784
square
#AFA647 #47AF72 #4750AF #AF4784
split-complementary
#AFA647 #4784AF #7247AF
monochromatic
#585324 #837D35 #AFA647 #C4BD6F #D6D19A

Accessibility & contrast

On white

2.51
#AFA647 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#AFA647 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA647
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA647#FFFFFF#000000##000000
##AFA6471.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A13D
Deuteranopia (green-blind)
#B7A64C
Tritanopia (blue-blind)
#BB9C91
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa647;
/* rgb */ color: rgb(175, 166, 71);
/* oklch */ color: oklch(71.4% 0.117 103.9);
Tailwind
colors: {
  custom: {
    50: '#c9c07e',
    500: '#afa647',
    950: '#000000',
  },
}
SCSS
$custom: #afa647;
$custom-light: #c9c07e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa647",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 71
  },
  "hsl": {
    "h": 54.808,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.71379,
    "c": 0.11689,
    "h": 103.9
  },
  "luminance": 0.36841
}

Semantic roles & 50–950 ramp

primary
#AFA647
secondary
#8F94C2
accent
#60D256
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA647

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

Preview Lab → · Contrast checker → · Palette generator →

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