#AFA157#AFA157

#AFA157 is a light, moderate yellow. Relative luminance 0.353; OKLCH L 70.5% C 0.097 H 98.8°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#AFA157
RGBrgb(175, 161, 87)
HSLhsl(50, 35%, 51%)
HSVhsv(50, 50%, 69%)
CMYKcmyk(0%, 8%, 50.3%, 31.4%)
CIE-LABlab(65.98, -4.98, 40.07)
CIE-LCHlch(65.98, 40.38, 97.09°)
OKLaboklab(70.5% -0.0148 0.0954)
OKLCHoklch(70.5% 0.097 98.8)
XYZxyz(32.1453, 35.2930, 14.1339)
Luminance0.3529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA157 #5765AF
analogous
#AF7557 #AFA157 #91AF57
triadic
#AFA157 #57AFA1 #A157AF
tetradic
#AFA157 #57AF75 #5765AF #AF5791
square
#AFA157 #57AF75 #5765AF #AF5791
split-complementary
#AFA157 #5791AF #7557AF
monochromatic
#5F572D #887D41 #AFA157 #C3B880 #D6CFAA

Accessibility & contrast

On white

2.61
#AFA157 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#AFA157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA157
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA157#FFFFFF#000000##000000
##AFA1571.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9D51
Deuteranopia (green-blind)
#B2A35A
Tritanopia (blue-blind)
#BA9890
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa157;
/* rgb */ color: rgb(175, 161, 87);
/* oklch */ color: oklch(70.5% 0.097 98.8);
Tailwind
colors: {
  custom: {
    50: '#c9bc88',
    500: '#afa157',
    950: '#000000',
  },
}
SCSS
$custom: #afa157;
$custom-light: #c9bc88;
$custom-dark: #000000;
JSON
{
  "hex": "#afa157",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 87
  },
  "hsl": {
    "h": 50.455,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.70499,
    "c": 0.09652,
    "h": 98.8
  },
  "luminance": 0.35292
}

Semantic roles & 50–950 ramp

primary
#AFA157
secondary
#9EA4C4
accent
#6ECC5C
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA157

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

Preview Lab → · Contrast checker → · Palette generator →

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