#AF9A42#AF9A42

#AF9A42 is a light, moderate yellow. Relative luminance 0.326; OKLCH L 68.7% C 0.111 H 95.9°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#AF9A42
RGBrgb(175, 154, 66)
HSLhsl(48, 45%, 47%)
HSVhsv(48, 62%, 69%)
CMYKcmyk(0%, 12%, 62.3%, 31.4%)
CIE-LABlab(63.85, -2.93, 47.87)
CIE-LCHlch(63.85, 47.96, 93.50°)
OKLaboklab(68.74% -0.0114 0.1099)
OKLCHoklch(68.74% 0.111 95.9)
XYZxyz(30.2195, 32.6200, 9.8577)
Luminance0.3262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9A42 #4257AF
analogous
#AF6342 #AF9A42 #8EAF42
triadic
#AF9A42 #42AF9A #9A42AF
tetradic
#AF9A42 #42AF63 #4257AF #AF428E
square
#AF9A42 #42AF63 #4257AF #AF428E
split-complementary
#AF9A42 #428EAF #6342AF
monochromatic
#564C20 #837331 #AF9A42 #C6B468 #D7CA95

Accessibility & contrast

On white

2.79
#AF9A42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#AF9A42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9A42
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9A42#FFFFFF#000000##000000
##AF9A421.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99738
Deuteranopia (green-blind)
#AE9E46
Tritanopia (blue-blind)
#BC8F87
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9a42;
/* rgb */ color: rgb(175, 154, 66);
/* oklch */ color: oklch(68.7% 0.111 95.9);
Tailwind
colors: {
  custom: {
    50: '#cab77a',
    500: '#af9a42',
    950: '#000000',
  },
}
SCSS
$custom: #af9a42;
$custom-light: #cab77a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9a42",
  "rgb": {
    "r": 175,
    "g": 154,
    "b": 66
  },
  "hsl": {
    "h": 48.44,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.68742,
    "c": 0.1105,
    "h": 95.9
  },
  "luminance": 0.32619
}

Semantic roles & 50–950 ramp

primary
#AF9A42
secondary
#8A95C2
accent
#6CD553
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9A42

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

Preview Lab → · Contrast checker → · Palette generator →

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