#AFA257#AFA257

#AFA257 is a light, moderate yellow. Relative luminance 0.356; OKLCH L 70.7% C 0.097 H 99.7°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#AFA257
RGBrgb(175, 162, 87)
HSLhsl(51, 35%, 51%)
HSVhsv(51, 50%, 69%)
CMYKcmyk(0%, 7.4%, 50.3%, 31.4%)
CIE-LABlab(66.25, -5.52, 40.40)
CIE-LCHlch(66.25, 40.77, 97.78°)
OKLaboklab(70.71% -0.0164 0.0961)
OKLCHoklch(70.71% 0.097 99.7)
XYZxyz(32.3208, 35.6439, 14.1924)
Luminance0.3564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA257 #5764AF
analogous
#AF7657 #AFA257 #90AF57
triadic
#AFA257 #57AFA2 #A257AF
tetradic
#AFA257 #57AF76 #5764AF #AF5790
square
#AFA257 #57AF76 #5764AF #AF5790
split-complementary
#AFA257 #5790AF #7657AF
monochromatic
#5F572D #887E41 #AFA257 #C3B980 #D6D0AA

Accessibility & contrast

On white

2.58
#AFA257 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#AFA257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA257
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA257#FFFFFF#000000##000000
##AFA2571.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9E50
Deuteranopia (green-blind)
#B2A35A
Tritanopia (blue-blind)
#BA9990
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa257;
/* rgb */ color: rgb(175, 162, 87);
/* oklch */ color: oklch(70.7% 0.097 99.7);
Tailwind
colors: {
  custom: {
    50: '#c9bd88',
    500: '#afa257',
    950: '#000000',
  },
}
SCSS
$custom: #afa257;
$custom-light: #c9bd88;
$custom-dark: #000000;
JSON
{
  "hex": "#afa257",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 87
  },
  "hsl": {
    "h": 51.136,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.70713,
    "c": 0.09747,
    "h": 99.7
  },
  "luminance": 0.35643
}

Semantic roles & 50–950 ramp

primary
#AFA257
secondary
#9EA3C4
accent
#6DCC5C
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA257

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

Preview Lab → · Contrast checker → · Palette generator →

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