#AFA26F#AFA26F

#AFA26F is a light, moderate yellow. Relative luminance 0.361; OKLCH L 71.1% C 0.070 H 95.5°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#AFA26F
RGBrgb(175, 162, 111)
HSLhsl(48, 29%, 56%)
HSVhsv(48, 37%, 69%)
CMYKcmyk(0%, 7.4%, 36.6%, 31.4%)
CIE-LABlab(66.60, -2.95, 28.27)
CIE-LCHlch(66.60, 28.42, 95.96°)
OKLaboklab(71.11% -0.0068 0.07)
OKLCHoklch(71.11% 0.07 95.5)
XYZxyz(33.4693, 36.1033, 20.2414)
Luminance0.3610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA26F #6F7CAF
analogous
#AF826F #AFA26F #9CAF6F
triadic
#AFA26F #6FAFA2 #A26FAF
tetradic
#AFA26F #6FAF82 #6F7CAF #AF6F9C
square
#AFA26F #6FAF82 #6F7CAF #AF6F9C
split-complementary
#AFA26F #6F9CAF #826FAF
monochromatic
#69603A #918350 #AFA26F #C5BB96 #DBD5BE

Accessibility & contrast

On white

2.55
#AFA26F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#AFA26F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA26F
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA26F#FFFFFF#000000##000000
##AFA26F1.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9F6B
Deuteranopia (green-blind)
#B0A471
Tritanopia (blue-blind)
#B89B95
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa26f;
/* rgb */ color: rgb(175, 162, 111);
/* oklch */ color: oklch(71.1% 0.070 95.5);
Tailwind
colors: {
  custom: {
    50: '#c8bd99',
    500: '#afa26f',
    950: '#000000',
  },
}
SCSS
$custom: #afa26f;
$custom-light: #c8bd99;
$custom-dark: #000000;
JSON
{
  "hex": "#afa26f",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 111
  },
  "hsl": {
    "h": 47.812,
    "s": 28.571,
    "l": 56.078
  },
  "oklch": {
    "l": 0.71106,
    "c": 0.07033,
    "h": 95.5
  },
  "luminance": 0.36102
}

Semantic roles & 50–950 ramp

primary
#AFA26F
secondary
#B0B5CA
accent
#77C563
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA26F

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

Preview Lab → · Contrast checker → · Palette generator →

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