#AFA34F#AFA34F

#AFA34F is a light, moderate yellow. Relative luminance 0.359; OKLCH L 70.8% C 0.107 H 101.3°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#AFA34F
RGBrgb(175, 163, 79)
HSLhsl(53, 38%, 50%)
HSVhsv(53, 55%, 69%)
CMYKcmyk(0%, 6.9%, 54.9%, 31.4%)
CIE-LABlab(66.42, -6.76, 44.59)
CIE-LCHlch(66.42, 45.09, 98.62°)
OKLaboklab(70.82% -0.0208 0.1045)
OKLCHoklch(70.82% 0.107 101.3)
XYZxyz(32.1887, 35.8740, 12.6244)
Luminance0.3587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA34F #4F5BAF
analogous
#AF734F #AFA34F #8BAF4F
triadic
#AFA34F #4FAFA3 #A34FAF
tetradic
#AFA34F #4FAF73 #4F5BAF #AF4F8B
square
#AFA34F #4FAF73 #4F5BAF #AF4F8B
split-complementary
#AFA34F #4F8BAF #734FAF
monochromatic
#5B5429 #857C3C #AFA34F #C2B979 #D5CFA3

Accessibility & contrast

On white

2.57
#AFA34F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#AFA34F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA34F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA34F#FFFFFF#000000##000000
##AFA34F1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09F47
Deuteranopia (green-blind)
#B4A453
Tritanopia (blue-blind)
#BB9990
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa34f;
/* rgb */ color: rgb(175, 163, 79);
/* oklch */ color: oklch(70.8% 0.107 101.3);
Tailwind
colors: {
  custom: {
    50: '#c9be83',
    500: '#afa34f',
    950: '#000000',
  },
}
SCSS
$custom: #afa34f;
$custom-light: #c9be83;
$custom-dark: #000000;
JSON
{
  "hex": "#afa34f",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 79
  },
  "hsl": {
    "h": 52.5,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.70822,
    "c": 0.10651,
    "h": 101.3
  },
  "luminance": 0.35873
}

Semantic roles & 50–950 ramp

primary
#AFA34F
secondary
#979DC3
accent
#69CE5A
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA34F

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

Preview Lab → · Contrast checker → · Palette generator →

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