#AFA95F#AFA95F

#AFA95F is a light, moderate yellow. Relative luminance 0.383; OKLCH L 72.3% C 0.096 H 104.5°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#AFA95F
RGBrgb(175, 169, 95)
HSLhsl(56, 33%, 53%)
HSVhsv(56, 46%, 69%)
CMYKcmyk(0%, 3.4%, 45.7%, 31.4%)
CIE-LABlab(68.25, -8.46, 38.78)
CIE-LCHlch(68.25, 39.69, 102.30°)
OKLaboklab(72.34% -0.024 0.0931)
OKLCHoklch(72.34% 0.096 104.5)
XYZxyz(33.9335, 38.3171, 16.4327)
Luminance0.3832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA95F #5F65AF
analogous
#AF815F #AFA95F #8DAF5F
triadic
#AFA95F #5FAFA9 #A95FAF
tetradic
#AFA95F #5FAF81 #5F65AF #AF5F8D
square
#AFA95F #5FAF81 #5F65AF #AF5F8D
split-complementary
#AFA95F #5F8DAF #815FAF
monochromatic
#625F31 #8B8646 #AFA95F #C3BF88 #D8D5B1

Accessibility & contrast

On white

2.42
#AFA95F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#AFA95F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA95F
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA95F#FFFFFF#000000##000000
##AFA95F1.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A459
Deuteranopia (green-blind)
#B7A862
Tritanopia (blue-blind)
#B9A097
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa95f;
/* rgb */ color: rgb(175, 169, 95);
/* oklch */ color: oklch(72.3% 0.096 104.5);
Tailwind
colors: {
  custom: {
    50: '#c8c28e',
    500: '#afa95f',
    950: '#000000',
  },
}
SCSS
$custom: #afa95f;
$custom-light: #c8c28e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa95f",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 95
  },
  "hsl": {
    "h": 55.5,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.72338,
    "c": 0.09618,
    "h": 104.5
  },
  "luminance": 0.38316
}

Semantic roles & 50–950 ramp

primary
#AFA95F
secondary
#A4A6C6
accent
#66C95E
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA95F

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

Preview Lab → · Contrast checker → · Palette generator →

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