#AF9D3A#AF9D3A

#AF9D3A is a light, moderate yellow. Relative luminance 0.335; OKLCH L 69.3% C 0.119 H 98.9°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#AF9D3A
RGBrgb(175, 157, 58)
HSLhsl(51, 50%, 46%)
HSVhsv(51, 67%, 69%)
CMYKcmyk(0%, 10.3%, 66.9%, 31.4%)
CIE-LABlab(64.59, -5.06, 52.26)
CIE-LCHlch(64.59, 52.50, 95.53°)
OKLaboklab(69.31% -0.0184 0.118)
OKLCHoklch(69.31% 0.119 98.9)
XYZxyz(30.5012, 33.5348, 8.8684)
Luminance0.3353 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D3A #3A4CAF
analogous
#AF623A #AF9D3A #86AF3A
triadic
#AF9D3A #3AAF9D #9D3AAF
tetradic
#AF9D3A #3AAF62 #3A4CAF #AF3A86
square
#AF9D3A #3AAF62 #3A4CAF #AF3A86
split-complementary
#AF9D3A #3A86AF #623AAF
monochromatic
#534B1C #81742B #AF9D3A #C9B95D #D9CD8B

Accessibility & contrast

On white

2.72
#AF9D3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#AF9D3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D3A
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D3A#FFFFFF#000000##000000
##AF9D3A1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC992D
Deuteranopia (green-blind)
#B19F3F
Tritanopia (blue-blind)
#BC9288
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9d3a;
/* rgb */ color: rgb(175, 157, 58);
/* oklch */ color: oklch(69.3% 0.119 98.9);
Tailwind
colors: {
  custom: {
    50: '#cab975',
    500: '#af9d3a',
    950: '#000000',
  },
}
SCSS
$custom: #af9d3a;
$custom-light: #cab975;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d3a",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 58
  },
  "hsl": {
    "h": 50.769,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.69305,
    "c": 0.11942,
    "h": 98.9
  },
  "luminance": 0.33533
}

Semantic roles & 50–950 ramp

primary
#AF9D3A
secondary
#828CC3
accent
#64DA4E
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9D3A

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

Preview Lab → · Contrast checker → · Palette generator →

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