#AFA26B#AFA26B

#AFA26B is a light, moderate yellow. Relative luminance 0.360; OKLCH L 71.0% C 0.075 H 96.5°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#AFA26B
RGBrgb(175, 162, 107)
HSLhsl(49, 30%, 55%)
HSVhsv(49, 39%, 69%)
CMYKcmyk(0%, 7.4%, 38.9%, 31.4%)
CIE-LABlab(66.53, -3.42, 30.33)
CIE-LCHlch(66.53, 30.52, 96.44°)
OKLaboklab(71.03% -0.0084 0.0746)
OKLCHoklch(71.03% 0.075 96.5)
XYZxyz(33.2540, 36.0172, 19.1074)
Luminance0.3602 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA26B #6B78AF
analogous
#AF806B #AFA26B #9AAF6B
triadic
#AFA26B #6BAFA2 #A26BAF
tetradic
#AFA26B #6BAF80 #6B78AF #AF6B9A
square
#AFA26B #6BAF80 #6B78AF #AF6B9A
split-complementary
#AFA26B #6B9AAF #806BAF
monochromatic
#685E38 #8F834D #AFA26B #C4BB93 #DAD4BA

Accessibility & contrast

On white

2.56
#AFA26B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#AFA26B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA26B
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA26B#FFFFFF#000000##000000
##AFA26B1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9F67
Deuteranopia (green-blind)
#B0A46D
Tritanopia (blue-blind)
#B99A94
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa26b;
/* rgb */ color: rgb(175, 162, 107);
/* oklch */ color: oklch(71.0% 0.075 96.5);
Tailwind
colors: {
  custom: {
    50: '#c8bd96',
    500: '#afa26b',
    950: '#000000',
  },
}
SCSS
$custom: #afa26b;
$custom-light: #c8bd96;
$custom-dark: #000000;
JSON
{
  "hex": "#afa26b",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 107
  },
  "hsl": {
    "h": 48.529,
    "s": 29.825,
    "l": 55.294
  },
  "oklch": {
    "l": 0.71033,
    "c": 0.07511,
    "h": 96.5
  },
  "luminance": 0.36016
}

Semantic roles & 50–950 ramp

primary
#AFA26B
secondary
#ADB2C9
accent
#75C662
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA26B

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

Preview Lab → · Contrast checker → · Palette generator →

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