#AFA74F#AFA74F

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

Color values

HEX#AFA74F
RGBrgb(175, 167, 79)
HSLhsl(55, 38%, 50%)
HSVhsv(55, 55%, 69%)
CMYKcmyk(0%, 4.6%, 54.9%, 31.4%)
CIE-LABlab(67.51, -8.87, 45.85)
CIE-LCHlch(67.51, 46.70, 100.95°)
OKLaboklab(71.69% -0.0269 0.1072)
OKLCHoklch(71.69% 0.111 104.1)
XYZxyz(32.9102, 37.3170, 12.8649)
Luminance0.3732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA74F #4F57AF
analogous
#AF774F #AFA74F #87AF4F
triadic
#AFA74F #4FAFA7 #A74FAF
tetradic
#AFA74F #4FAF77 #4F57AF #AF4F87
square
#AFA74F #4FAF77 #4F57AF #AF4F87
split-complementary
#AFA74F #4F87AF #774FAF
monochromatic
#5B5729 #857F3C #AFA74F #C2BC79 #D5D1A3

Accessibility & contrast

On white

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

On black

8.46
#AFA74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA74F
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA74F#FFFFFF#000000##000000
##AFA74F1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa74f;
/* rgb */ color: rgb(175, 167, 79);
/* oklch */ color: oklch(71.7% 0.111 104.1);
Tailwind
colors: {
  custom: {
    50: '#c9c083',
    500: '#afa74f',
    950: '#000000',
  },
}
SCSS
$custom: #afa74f;
$custom-light: #c9c083;
$custom-dark: #000000;
JSON
{
  "hex": "#afa74f",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 79
  },
  "hsl": {
    "h": 55,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.71688,
    "c": 0.11051,
    "h": 104.1
  },
  "luminance": 0.37316
}

Semantic roles & 50–950 ramp

primary
#AFA74F
secondary
#979BC3
accent
#64CE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA74F

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

Preview Lab → · Contrast checker → · Palette generator →

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