#AFA757#AFA757

#AFA757 is a light, moderate yellow. Relative luminance 0.374; OKLCH L 71.8% C 0.103 H 103.5°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#AFA757
RGBrgb(175, 167, 87)
HSLhsl(55, 35%, 51%)
HSVhsv(55, 50%, 69%)
CMYKcmyk(0%, 4.6%, 50.3%, 31.4%)
CIE-LABlab(67.61, -8.17, 42.03)
CIE-LCHlch(67.61, 42.82, 101.00°)
OKLaboklab(71.79% -0.024 0.0997)
OKLCHoklch(71.79% 0.103 103.5)
XYZxyz(33.2191, 37.4406, 14.4919)
Luminance0.3744 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA757 #575FAF
analogous
#AF7B57 #AFA757 #8BAF57
triadic
#AFA757 #57AFA7 #A757AF
tetradic
#AFA757 #57AF7B #575FAF #AF578B
square
#AFA757 #57AF7B #575FAF #AF578B
split-complementary
#AFA757 #578BAF #7B57AF
monochromatic
#5F5A2D #888241 #AFA757 #C3BD80 #D6D2AA

Accessibility & contrast

On white

2.47
#AFA757 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.49
#AFA757 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA757
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA757#FFFFFF#000000##000000
##AFA7571.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A250
Deuteranopia (green-blind)
#B6A75B
Tritanopia (blue-blind)
#BA9E94
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa757;
/* rgb */ color: rgb(175, 167, 87);
/* oklch */ color: oklch(71.8% 0.103 103.5);
Tailwind
colors: {
  custom: {
    50: '#c9c188',
    500: '#afa757',
    950: '#000000',
  },
}
SCSS
$custom: #afa757;
$custom-light: #c9c188;
$custom-dark: #000000;
JSON
{
  "hex": "#afa757",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 87
  },
  "hsl": {
    "h": 54.545,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.71791,
    "c": 0.10253,
    "h": 103.5
  },
  "luminance": 0.3744
}

Semantic roles & 50–950 ramp

primary
#AFA757
secondary
#9EA1C4
accent
#66CC5C
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA757

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

Preview Lab → · Contrast checker → · Palette generator →

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