#AFA05B#AFA05B

#AFA05B is a light, moderate yellow. Relative luminance 0.350; OKLCH L 70.3% C 0.091 H 97.4°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#AFA05B
RGBrgb(175, 160, 91)
HSLhsl(49, 34%, 52%)
HSVhsv(49, 48%, 69%)
CMYKcmyk(0%, 8.6%, 48%, 31.4%)
CIE-LABlab(65.76, -4.07, 37.76)
CIE-LCHlch(65.76, 37.98, 96.15°)
OKLaboklab(70.34% -0.0117 0.0906)
OKLCHoklch(70.34% 0.091 97.4)
XYZxyz(32.1393, 35.0121, 14.9606)
Luminance0.3501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA05B #5B6AAF
analogous
#AF765B #AFA05B #94AF5B
triadic
#AFA05B #5BAFA0 #A05BAF
tetradic
#AFA05B #5BAF76 #5B6AAF #AF5B94
square
#AFA05B #5BAF76 #5B6AAF #AF5B94
split-complementary
#AFA05B #5B94AF #765BAF
monochromatic
#61582F #8A7D43 #AFA05B #C3B884 #D7D0AD

Accessibility & contrast

On white

2.62
#AFA05B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#AFA05B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA05B
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA05B#FFFFFF#000000##000000
##AFA05B1.002.628.008.00
#FFFFFF2.621.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9D55
Deuteranopia (green-blind)
#B0A25E
Tritanopia (blue-blind)
#BA9790
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa05b;
/* rgb */ color: rgb(175, 160, 91);
/* oklch */ color: oklch(70.3% 0.091 97.4);
Tailwind
colors: {
  custom: {
    50: '#c8bb8b',
    500: '#afa05b',
    950: '#000000',
  },
}
SCSS
$custom: #afa05b;
$custom-light: #c8bb8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa05b",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 91
  },
  "hsl": {
    "h": 49.286,
    "s": 34.426,
    "l": 52.157
  },
  "oklch": {
    "l": 0.70343,
    "c": 0.09133,
    "h": 97.4
  },
  "luminance": 0.35011
}

Semantic roles & 50–950 ramp

primary
#AFA05B
secondary
#A1A7C5
accent
#71CB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13110C
muted
#82807D

Preview Lab

Preview with #AFA05B

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

Preview Lab → · Contrast checker → · Palette generator →

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