#AFA65B#AFA65B

#AFA65B is a light, moderate yellow. Relative luminance 0.371; OKLCH L 71.6% C 0.097 H 102.5°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#AFA65B
RGBrgb(175, 166, 91)
HSLhsl(54, 34%, 52%)
HSVhsv(54, 48%, 69%)
CMYKcmyk(0%, 5.1%, 48%, 31.4%)
CIE-LABlab(67.38, -7.27, 39.75)
CIE-LCHlch(67.38, 40.41, 100.36°)
OKLaboklab(71.63% -0.021 0.095)
OKLCHoklch(71.63% 0.097 102.5)
XYZxyz(33.2046, 37.1428, 15.3157)
Luminance0.3714 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA65B #5B64AF
analogous
#AF7C5B #AFA65B #8EAF5B
triadic
#AFA65B #5BAFA6 #A65BAF
tetradic
#AFA65B #5BAF7C #5B64AF #AF5B8E
square
#AFA65B #5BAF7C #5B64AF #AF5B8E
split-complementary
#AFA65B #5B8EAF #7C5BAF
monochromatic
#615B2F #8A8243 #AFA65B #C3BC84 #D7D3AD

Accessibility & contrast

On white

2.49
#AFA65B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#AFA65B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA65B
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA65B#FFFFFF#000000##000000
##AFA65B1.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A255
Deuteranopia (green-blind)
#B5A65E
Tritanopia (blue-blind)
#BA9D94
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa65b;
/* rgb */ color: rgb(175, 166, 91);
/* oklch */ color: oklch(71.6% 0.097 102.5);
Tailwind
colors: {
  custom: {
    50: '#c8c08b',
    500: '#afa65b',
    950: '#000000',
  },
}
SCSS
$custom: #afa65b;
$custom-light: #c8c08b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa65b",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 91
  },
  "hsl": {
    "h": 53.571,
    "s": 34.426,
    "l": 52.157
  },
  "oklch": {
    "l": 0.71631,
    "c": 0.09728,
    "h": 102.5
  },
  "luminance": 0.37142
}

Semantic roles & 50–950 ramp

primary
#AFA65B
secondary
#A1A4C5
accent
#69CB5D
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA65B

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

Preview Lab → · Contrast checker → · Palette generator →

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