#AF9940#AF9940

#AF9940 is a light, moderate yellow. Relative luminance 0.323; OKLCH L 68.5% C 0.111 H 95.4°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#AF9940
RGBrgb(175, 153, 64)
HSLhsl(48, 46%, 47%)
HSVhsv(48, 63%, 69%)
CMYKcmyk(0%, 12.6%, 63.4%, 31.4%)
CIE-LABlab(63.56, -2.53, 48.48)
CIE-LCHlch(63.56, 48.55, 92.98°)
OKLaboklab(68.51% -0.0105 0.1109)
OKLCHoklch(68.51% 0.111 95.4)
XYZxyz(29.9972, 32.2681, 9.4978)
Luminance0.3227 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9940 #4056AF
analogous
#AF6240 #AF9940 #8EAF40
triadic
#AF9940 #40AF99 #9940AF
tetradic
#AF9940 #40AF62 #4056AF #AF408E
square
#AF9940 #40AF62 #4056AF #AF408E
split-complementary
#AF9940 #408EAF #6240AF
monochromatic
#554B1F #827230 #AF9940 #C7B465 #D7CA92

Accessibility & contrast

On white

2.82
#AF9940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#AF9940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9940
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9940#FFFFFF#000000##000000
##AF99401.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89636
Deuteranopia (green-blind)
#AD9D44
Tritanopia (blue-blind)
#BC8E86
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9940;
/* rgb */ color: rgb(175, 153, 64);
/* oklch */ color: oklch(68.5% 0.111 95.4);
Tailwind
colors: {
  custom: {
    50: '#cab679',
    500: '#af9940',
    950: '#000000',
  },
}
SCSS
$custom: #af9940;
$custom-light: #cab679;
$custom-dark: #000000;
JSON
{
  "hex": "#af9940",
  "rgb": {
    "r": 175,
    "g": 153,
    "b": 64
  },
  "hsl": {
    "h": 48.108,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.68508,
    "c": 0.11141,
    "h": 95.4
  },
  "luminance": 0.32267
}

Semantic roles & 50–950 ramp

primary
#AF9940
secondary
#8894C3
accent
#6CD652
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9940

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

Preview Lab → · Contrast checker → · Palette generator →

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