#AFA457#AFA457

#AFA457 is a light, moderate yellow. Relative luminance 0.364; OKLCH L 71.1% C 0.099 H 101.3°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#AFA457
RGBrgb(175, 164, 87)
HSLhsl(53, 35%, 51%)
HSVhsv(53, 50%, 69%)
CMYKcmyk(0%, 6.3%, 50.3%, 31.4%)
CIE-LABlab(66.79, -6.58, 41.05)
CIE-LCHlch(66.79, 41.58, 99.11°)
OKLaboklab(71.14% -0.0194 0.0975)
OKLCHoklch(71.14% 0.099 101.3)
XYZxyz(32.6759, 36.3541, 14.3108)
Luminance0.3635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA457 #5762AF
analogous
#AF7857 #AFA457 #8EAF57
triadic
#AFA457 #57AFA4 #A457AF
tetradic
#AFA457 #57AF78 #5762AF #AF578E
square
#AFA457 #57AF78 #5762AF #AF578E
split-complementary
#AFA457 #578EAF #7857AF
monochromatic
#5F582D #887F41 #AFA457 #C3BA80 #D6D1AA

Accessibility & contrast

On white

2.54
#AFA457 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#AFA457 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA457
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA457#FFFFFF#000000##000000
##AFA4571.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A050
Deuteranopia (green-blind)
#B4A55A
Tritanopia (blue-blind)
#BA9B92
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa457;
/* rgb */ color: rgb(175, 164, 87);
/* oklch */ color: oklch(71.1% 0.099 101.3);
Tailwind
colors: {
  custom: {
    50: '#c9be88',
    500: '#afa457',
    950: '#000000',
  },
}
SCSS
$custom: #afa457;
$custom-light: #c9be88;
$custom-dark: #000000;
JSON
{
  "hex": "#afa457",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 87
  },
  "hsl": {
    "h": 52.5,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.71143,
    "c": 0.09945,
    "h": 101.3
  },
  "luminance": 0.36353
}

Semantic roles & 50–950 ramp

primary
#AFA457
secondary
#9EA2C4
accent
#6ACC5C
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA457

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

Preview Lab → · Contrast checker → · Palette generator →

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