#AFAF7E#AFAF7E

#AFAF7E is a light, moderate yellow. Relative luminance 0.413; OKLCH L 74.2% C 0.066 H 107.9°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#AFAF7E
RGBrgb(175, 175, 126)
HSLhsl(60, 23%, 59%)
HSVhsv(60, 28%, 69%)
CMYKcmyk(0%, 0%, 28%, 31.4%)
CIE-LABlab(70.37, -7.95, 25.21)
CIE-LCHlch(70.37, 26.44, 107.51°)
OKLaboklab(74.18% -0.0204 0.0632)
OKLCHoklch(74.18% 0.066 107.9)
XYZxyz(36.7752, 41.2808, 25.7653)
Luminance0.4128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF7E #7E7EAF
analogous
#AF977E #AFAF7E #97AF7E
triadic
#AFAF7E #7EAFAF #AF7EAF
tetradic
#AFAF7E #7EAF97 #7E7EAF #AF7E97
square
#AFAF7E #7EAF97 #7E7EAF #AF7E97
split-complementary
#AFAF7E #7E97AF #977EAF
monochromatic
#6E6E44 #94945C #AFAF7E #C6C6A4 #DEDECA

Accessibility & contrast

On white

2.27
#AFAF7E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#AFAF7E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF7E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF7E#FFFFFF#000000##000000
##AFAF7E1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7AB7B
Deuteranopia (green-blind)
#B8AD80
Tritanopia (blue-blind)
#B6A9A2
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afaf7e;
/* rgb */ color: rgb(175, 175, 126);
/* oklch */ color: oklch(74.2% 0.066 107.9);
Tailwind
colors: {
  custom: {
    50: '#c7c6a3',
    500: '#afaf7e',
    950: '#000000',
  },
}
SCSS
$custom: #afaf7e;
$custom-light: #c7c6a3;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf7e",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 126
  },
  "hsl": {
    "h": 60,
    "s": 23.445,
    "l": 59.02
  },
  "oklch": {
    "l": 0.74178,
    "c": 0.06644,
    "h": 107.9
  },
  "luminance": 0.4128
}

Semantic roles & 50–950 ramp

primary
#AFAF7E
secondary
#BBBBCE
accent
#68C068
background
#FCFCFA
surface
#F8F8F4
border
#D1D1CE
text
#13130F
muted
#82827F

Preview Lab

Preview with #AFAF7E

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

Preview Lab → · Contrast checker → · Palette generator →

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