#AFA74C#AFA74C

#AFA74C is a light, moderate yellow. Relative luminance 0.373; OKLCH L 71.7% C 0.113 H 104.3°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA74C
RGBrgb(175, 167, 76)
HSLhsl(55, 39%, 49%)
HSVhsv(55, 57%, 69%)
CMYKcmyk(0%, 4.6%, 56.6%, 31.4%)
CIE-LABlab(67.48, -9.11, 47.25)
CIE-LCHlch(67.48, 48.12, 100.92°)
OKLaboklab(71.65% -0.0279 0.1099)
OKLCHoklch(71.65% 0.113 104.3)
XYZxyz(32.8035, 37.2743, 12.3028)
Luminance0.3727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA74C #4C54AF
analogous
#AF764C #AFA74C #86AF4C
triadic
#AFA74C #4CAFA7 #A74CAF
tetradic
#AFA74C #4CAF76 #4C54AF #AF4C86
square
#AFA74C #4CAF76 #4C54AF #AF4C86
split-complementary
#AFA74C #4C86AF #764CAF
monochromatic
#5A5627 #847E39 #AFA74C #C3BD75 #D6D1A0

Accessibility & contrast

On white

2.48
#AFA74C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#AFA74C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA74C
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA74C#FFFFFF#000000##000000
##AFA74C1.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A243
Deuteranopia (green-blind)
#B7A651
Tritanopia (blue-blind)
#BB9D93
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa74c;
/* rgb */ color: rgb(175, 167, 76);
/* oklch */ color: oklch(71.7% 0.113 104.3);
Tailwind
colors: {
  custom: {
    50: '#c9c081',
    500: '#afa74c',
    950: '#000000',
  },
}
SCSS
$custom: #afa74c;
$custom-light: #c9c081;
$custom-dark: #000000;
JSON
{
  "hex": "#afa74c",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 76
  },
  "hsl": {
    "h": 55.152,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.71653,
    "c": 0.11335,
    "h": 104.3
  },
  "luminance": 0.37273
}

Semantic roles & 50–950 ramp

primary
#AFA74C
secondary
#9498C2
accent
#62CF58
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA74C

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

Preview Lab → · Contrast checker → · Palette generator →

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