#AFA849#AFA849

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

Color values

HEX#AFA849
RGBrgb(175, 168, 73)
HSLhsl(56, 41%, 49%)
HSVhsv(56, 58%, 69%)
CMYKcmyk(0%, 4%, 58.3%, 31.4%)
CIE-LABlab(67.73, -9.87, 48.93)
CIE-LCHlch(67.73, 49.91, 101.41°)
OKLaboklab(71.84% -0.0304 0.1131)
OKLCHoklch(71.84% 0.117 105.1)
XYZxyz(32.8855, 37.6013, 11.8275)
Luminance0.3760 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA849 #4950AF
analogous
#AF7549 #AFA849 #83AF49
triadic
#AFA849 #49AFA8 #A849AF
tetradic
#AFA849 #49AF75 #4950AF #AF4983
square
#AFA849 #49AF75 #4950AF #AF4983
split-complementary
#AFA849 #4983AF #7549AF
monochromatic
#595525 #847F37 #AFA849 #C4BE71 #D6D29C

Accessibility & contrast

On white

2.46
#AFA849 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#AFA849 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA849
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA849#FFFFFF#000000##000000
##AFA8491.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa849;
/* rgb */ color: rgb(175, 168, 73);
/* oklch */ color: oklch(71.8% 0.117 105.1);
Tailwind
colors: {
  custom: {
    50: '#c9c17f',
    500: '#afa849',
    950: '#000000',
  },
}
SCSS
$custom: #afa849;
$custom-light: #c9c17f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa849",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 73
  },
  "hsl": {
    "h": 55.882,
    "s": 41.129,
    "l": 48.627
  },
  "oklch": {
    "l": 0.71837,
    "c": 0.11711,
    "h": 105.1
  },
  "luminance": 0.376
}

Semantic roles & 50–950 ramp

primary
#AFA849
secondary
#9195C2
accent
#5FD157
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA849

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

Preview Lab → · Contrast checker → · Palette generator →

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