#AF9941#AF9941

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

Color values

HEX#AF9941
RGBrgb(175, 153, 65)
HSLhsl(48, 46%, 47%)
HSVhsv(48, 63%, 69%)
CMYKcmyk(0%, 12.6%, 62.9%, 31.4%)
CIE-LABlab(63.57, -2.46, 48.03)
CIE-LCHlch(63.57, 48.09, 92.93°)
OKLaboklab(68.52% -0.0101 0.1101)
OKLCHoklch(68.52% 0.111 95.3)
XYZxyz(30.0259, 32.2795, 9.6490)
Luminance0.3228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9941 #4157AF
analogous
#AF6241 #AF9941 #8EAF41
triadic
#AF9941 #41AF99 #9941AF
tetradic
#AF9941 #41AF62 #4157AF #AF418E
square
#AF9941 #41AF62 #4157AF #AF418E
split-complementary
#AF9941 #418EAF #6241AF
monochromatic
#564B20 #827230 #AF9941 #C6B367 #D7C993

Accessibility & contrast

On white

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

On black

7.46
#AF9941 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9941
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9941#FFFFFF#000000##000000
##AF99411.002.827.467.46
#FFFFFF2.821.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9941;
/* rgb */ color: rgb(175, 153, 65);
/* oklch */ color: oklch(68.5% 0.111 95.3);
Tailwind
colors: {
  custom: {
    50: '#cab679',
    500: '#af9941',
    950: '#000000',
  },
}
SCSS
$custom: #af9941;
$custom-light: #cab679;
$custom-dark: #000000;
JSON
{
  "hex": "#af9941",
  "rgb": {
    "r": 175,
    "g": 153,
    "b": 65
  },
  "hsl": {
    "h": 48,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.68518,
    "c": 0.11057,
    "h": 95.3
  },
  "luminance": 0.32278
}

Semantic roles & 50–950 ramp

primary
#AF9941
secondary
#8995C2
accent
#6DD552
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9941

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

Preview Lab → · Contrast checker → · Palette generator →

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