#AFA264#AFA264

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

Color values

HEX#AFA264
RGBrgb(175, 162, 100)
HSLhsl(50, 32%, 54%)
HSVhsv(50, 43%, 69%)
CMYKcmyk(0%, 7.4%, 42.9%, 31.4%)
CIE-LABlab(66.42, -4.21, 33.90)
CIE-LCHlch(66.42, 34.16, 97.08°)
OKLaboklab(70.91% -0.0113 0.0825)
OKLCHoklch(70.91% 0.083 97.8)
XYZxyz(32.9005, 35.8758, 17.2458)
Luminance0.3588 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA264 #6471AF
analogous
#AF7D64 #AFA264 #97AF64
triadic
#AFA264 #64AFA2 #A264AF
tetradic
#AFA264 #64AF7D #6471AF #AF6497
square
#AFA264 #64AF7D #6471AF #AF6497
split-complementary
#AFA264 #6497AF #7D64AF
monochromatic
#655C34 #8D8149 #AFA264 #C4BA8C #D9D2B5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA264#FFFFFF#000000##000000
##AFA2641.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)
#AD9F5F
Deuteranopia (green-blind)
#B1A466
Tritanopia (blue-blind)
#B99A93
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa264;
/* rgb */ color: rgb(175, 162, 100);
/* oklch */ color: oklch(70.9% 0.083 97.8);
Tailwind
colors: {
  custom: {
    50: '#c8bd91',
    500: '#afa264',
    950: '#000000',
  },
}
SCSS
$custom: #afa264;
$custom-light: #c8bd91;
$custom-dark: #000000;
JSON
{
  "hex": "#afa264",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 100
  },
  "hsl": {
    "h": 49.6,
    "s": 31.915,
    "l": 53.922
  },
  "oklch": {
    "l": 0.70912,
    "c": 0.08325,
    "h": 97.8
  },
  "luminance": 0.35875
}

Semantic roles & 50–950 ramp

primary
#AFA264
secondary
#A7ADC7
accent
#72C860
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120D
muted
#82817D

Preview Lab

Preview with #AFA264

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

Preview Lab → · Contrast checker → · Palette generator →

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