#AF9F40#AF9F40

#AF9F40 is a light, moderate yellow. Relative luminance 0.343; OKLCH L 69.8% C 0.116 H 99.8°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#AF9F40
RGBrgb(175, 159, 64)
HSLhsl(51, 46%, 47%)
HSVhsv(51, 63%, 69%)
CMYKcmyk(0%, 9.1%, 63.4%, 31.4%)
CIE-LABlab(65.19, -5.75, 50.24)
CIE-LCHlch(65.19, 50.57, 96.53°)
OKLaboklab(69.79% -0.0197 0.1147)
OKLCHoklch(69.79% 0.116 99.8)
XYZxyz(31.0040, 34.2817, 9.8334)
Luminance0.3428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F40 #4050AF
analogous
#AF6740 #AF9F40 #88AF40
triadic
#AF9F40 #40AF9F #9F40AF
tetradic
#AF9F40 #40AF67 #4050AF #AF4088
square
#AF9F40 #40AF67 #4050AF #AF4088
split-complementary
#AF9F40 #4088AF #6740AF
monochromatic
#554E1F #827630 #AF9F40 #C7B965 #D7CD92

Accessibility & contrast

On white

2.67
#AF9F40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#AF9F40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F40
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F40#FFFFFF#000000##000000
##AF9F401.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9B35
Deuteranopia (green-blind)
#B2A145
Tritanopia (blue-blind)
#BC948B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9f40;
/* rgb */ color: rgb(175, 159, 64);
/* oklch */ color: oklch(69.8% 0.116 99.8);
Tailwind
colors: {
  custom: {
    50: '#cabb79',
    500: '#af9f40',
    950: '#000000',
  },
}
SCSS
$custom: #af9f40;
$custom-light: #cabb79;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f40",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 64
  },
  "hsl": {
    "h": 51.351,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.69792,
    "c": 0.11635,
    "h": 99.8
  },
  "luminance": 0.3428
}

Semantic roles & 50–950 ramp

primary
#AF9F40
secondary
#8891C3
accent
#65D652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9F40

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

Preview Lab → · Contrast checker → · Palette generator →

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