#AFA64F#AFA64F

#AFA64F is a light, moderate yellow. Relative luminance 0.370; OKLCH L 71.5% C 0.109 H 103.4°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#AFA64F
RGBrgb(175, 166, 79)
HSLhsl(54, 38%, 50%)
HSVhsv(54, 55%, 69%)
CMYKcmyk(0%, 5.1%, 54.9%, 31.4%)
CIE-LABlab(67.24, -8.35, 45.53)
CIE-LCHlch(67.24, 46.29, 100.39°)
OKLaboklab(71.47% -0.0254 0.1065)
OKLCHoklch(71.47% 0.109 103.4)
XYZxyz(32.7277, 36.9520, 12.8041)
Luminance0.3695 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA64F #4F58AF
analogous
#AF764F #AFA64F #88AF4F
triadic
#AFA64F #4FAFA6 #A64FAF
tetradic
#AFA64F #4FAF76 #4F58AF #AF4F88
square
#AFA64F #4FAF76 #4F58AF #AF4F88
split-complementary
#AFA64F #4F88AF #764FAF
monochromatic
#5B5629 #857E3C #AFA64F #C2BC79 #D5D1A3

Accessibility & contrast

On white

2.50
#AFA64F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#AFA64F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA64F
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA64F#FFFFFF#000000##000000
##AFA64F1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A147
Deuteranopia (green-blind)
#B6A653
Tritanopia (blue-blind)
#BB9C92
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa64f;
/* rgb */ color: rgb(175, 166, 79);
/* oklch */ color: oklch(71.5% 0.109 103.4);
Tailwind
colors: {
  custom: {
    50: '#c9c083',
    500: '#afa64f',
    950: '#000000',
  },
}
SCSS
$custom: #afa64f;
$custom-light: #c9c083;
$custom-dark: #000000;
JSON
{
  "hex": "#afa64f",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 79
  },
  "hsl": {
    "h": 54.375,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.71471,
    "c": 0.10949,
    "h": 103.4
  },
  "luminance": 0.36951
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA64F

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

Preview Lab → · Contrast checker → · Palette generator →

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