#AFA875#AFA875

#AFA875 is a light, moderate yellow. Relative luminance 0.384; OKLCH L 72.5% C 0.069 H 101.3°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#AFA875
RGBrgb(175, 168, 117)
HSLhsl(53, 27%, 57%)
HSVhsv(53, 33%, 69%)
CMYKcmyk(0%, 4%, 33.1%, 31.4%)
CIE-LABlab(68.32, -5.42, 27.31)
CIE-LCHlch(68.32, 27.84, 101.23°)
OKLaboklab(72.5% -0.0136 0.068)
OKLCHoklch(72.5% 0.069 101.3)
XYZxyz(34.8931, 38.4044, 22.4009)
Luminance0.3840 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA875 #757CAF
analogous
#AF8B75 #AFA875 #99AF75
triadic
#AFA875 #75AFA8 #A875AF
tetradic
#AFA875 #75AF8B #757CAF #AF7599
square
#AFA875 #75AF8B #757CAF #AF7599
split-complementary
#AFA875 #7599AF #8B75AF
monochromatic
#6B663E #928B55 #AFA875 #C5C09C #DCD9C2

Accessibility & contrast

On white

2.42
#AFA875 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#AFA875 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA875
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA875#FFFFFF#000000##000000
##AFA8751.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A571
Deuteranopia (green-blind)
#B4A877
Tritanopia (blue-blind)
#B7A19B
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa875;
/* rgb */ color: rgb(175, 168, 117);
/* oklch */ color: oklch(72.5% 0.069 101.3);
Tailwind
colors: {
  custom: {
    50: '#c7c19d',
    500: '#afa875',
    950: '#000000',
  },
}
SCSS
$custom: #afa875;
$custom-light: #c7c19d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa875",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 117
  },
  "hsl": {
    "h": 52.759,
    "s": 26.606,
    "l": 57.255
  },
  "oklch": {
    "l": 0.72498,
    "c": 0.06929,
    "h": 101.3
  },
  "luminance": 0.38404
}

Semantic roles & 50–950 ramp

primary
#AFA875
secondary
#B4B7CC
accent
#70C365
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA875

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

Preview Lab → · Contrast checker → · Palette generator →

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