#AFA847#AFA847

#AFA847 is a light, moderate yellow. Relative luminance 0.376; OKLCH L 71.8% C 0.119 H 105.2°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#AFA847
RGBrgb(175, 168, 71)
HSLhsl(56, 42%, 48%)
HSVhsv(56, 59%, 69%)
CMYKcmyk(0%, 4%, 59.4%, 31.4%)
CIE-LABlab(67.71, -10.02, 49.83)
CIE-LCHlch(67.71, 50.82, 101.37°)
OKLaboklab(71.82% -0.0311 0.1148)
OKLCHoklch(71.82% 0.119 105.2)
XYZxyz(32.8202, 37.5753, 11.4839)
Luminance0.3757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA847 #474EAF
analogous
#AF7447 #AFA847 #82AF47
triadic
#AFA847 #47AFA8 #A847AF
tetradic
#AFA847 #47AF74 #474EAF #AF4782
square
#AFA847 #47AF74 #474EAF #AF4782
split-complementary
#AFA847 #4782AF #7447AF
monochromatic
#585424 #837E35 #AFA847 #C4BF6F #D6D29A

Accessibility & contrast

On white

2.47
#AFA847 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#AFA847 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA847
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA847#FFFFFF#000000##000000
##AFA8471.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A23C
Deuteranopia (green-blind)
#B8A74C
Tritanopia (blue-blind)
#BB9E93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa847;
/* rgb */ color: rgb(175, 168, 71);
/* oklch */ color: oklch(71.8% 0.119 105.2);
Tailwind
colors: {
  custom: {
    50: '#c9c17e',
    500: '#afa847',
    950: '#000000',
  },
}
SCSS
$custom: #afa847;
$custom-light: #c9c17e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa847",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 71
  },
  "hsl": {
    "h": 55.962,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.71815,
    "c": 0.11889,
    "h": 105.2
  },
  "luminance": 0.37574
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA847

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

Preview Lab → · Contrast checker → · Palette generator →

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