#AFA266#AFA266

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

Color values

HEX#AFA266
RGBrgb(175, 162, 102)
HSLhsl(49, 31%, 54%)
HSVhsv(49, 42%, 69%)
CMYKcmyk(0%, 7.4%, 41.7%, 31.4%)
CIE-LABlab(66.45, -3.99, 32.88)
CIE-LCHlch(66.45, 33.13, 96.92°)
OKLaboklab(70.95% -0.0105 0.0803)
OKLCHoklch(70.95% 0.081 97.4)
XYZxyz(32.9985, 35.9150, 17.7618)
Luminance0.3591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA266 #6673AF
analogous
#AF7E66 #AFA266 #98AF66
triadic
#AFA266 #66AFA2 #A266AF
tetradic
#AFA266 #66AF7E #6673AF #AF6698
square
#AFA266 #66AF7E #6673AF #AF6698
split-complementary
#AFA266 #6698AF #7E66AF
monochromatic
#665D35 #8E824A #AFA266 #C4BA8E #D9D3B6

Accessibility & contrast

On white

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

On black

8.18
#AFA266 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA266
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA266#FFFFFF#000000##000000
##AFA2661.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9F61
Deuteranopia (green-blind)
#B1A468
Tritanopia (blue-blind)
#B99A93
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa266;
/* rgb */ color: rgb(175, 162, 102);
/* oklch */ color: oklch(70.9% 0.081 97.4);
Tailwind
colors: {
  custom: {
    50: '#c8bd92',
    500: '#afa266',
    950: '#000000',
  },
}
SCSS
$custom: #afa266;
$custom-light: #c8bd92;
$custom-dark: #000000;
JSON
{
  "hex": "#afa266",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 102
  },
  "hsl": {
    "h": 49.315,
    "s": 31.33,
    "l": 54.314
  },
  "oklch": {
    "l": 0.70945,
    "c": 0.08095,
    "h": 97.4
  },
  "luminance": 0.35914
}

Semantic roles & 50–950 ramp

primary
#AFA266
secondary
#A9AEC8
accent
#73C860
background
#FCFBF9
surface
#F8F6F1
border
#D1D0CB
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA266

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

Preview Lab → · Contrast checker → · Palette generator →

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