#AFA14F#AFA14F

#AFA14F is a light, moderate yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.105 H 99.8°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#AFA14F
RGBrgb(175, 161, 79)
HSLhsl(51, 38%, 50%)
HSVhsv(51, 55%, 69%)
CMYKcmyk(0%, 8%, 54.9%, 31.4%)
CIE-LABlab(65.88, -5.69, 43.95)
CIE-LCHlch(65.88, 44.32, 97.38°)
OKLaboklab(70.39% -0.0178 0.1031)
OKLCHoklch(70.39% 0.105 99.8)
XYZxyz(31.8364, 35.1694, 12.5070)
Luminance0.3517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA14F #4F5DAF
analogous
#AF714F #AFA14F #8DAF4F
triadic
#AFA14F #4FAFA1 #A14FAF
tetradic
#AFA14F #4FAF71 #4F5DAF #AF4F8D
square
#AFA14F #4FAF71 #4F5DAF #AF4F8D
split-complementary
#AFA14F #4F8DAF #714FAF
monochromatic
#5B5329 #857A3C #AFA14F #C2B879 #D5CEA3

Accessibility & contrast

On white

2.61
#AFA14F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#AFA14F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA14F
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA14F#FFFFFF#000000##000000
##AFA14F1.002.618.038.03
#FFFFFF2.611.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9D47
Deuteranopia (green-blind)
#B2A253
Tritanopia (blue-blind)
#BB978E
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa14f;
/* rgb */ color: rgb(175, 161, 79);
/* oklch */ color: oklch(70.4% 0.105 99.8);
Tailwind
colors: {
  custom: {
    50: '#c9bc83',
    500: '#afa14f',
    950: '#000000',
  },
}
SCSS
$custom: #afa14f;
$custom-light: #c9bc83;
$custom-dark: #000000;
JSON
{
  "hex": "#afa14f",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 79
  },
  "hsl": {
    "h": 51.25,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.70392,
    "c": 0.10461,
    "h": 99.8
  },
  "luminance": 0.35168
}

Semantic roles & 50–950 ramp

primary
#AFA14F
secondary
#979EC3
accent
#6BCE5A
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA14F

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

Preview Lab → · Contrast checker → · Palette generator →

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