#AF9D2C#AF9D2C

#AF9D2C is a light, vivid yellow. Relative luminance 0.334; OKLCH L 69.2% C 0.129 H 99.9°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#AF9D2C
RGBrgb(175, 157, 44)
HSLhsl(52, 60%, 43%)
HSVhsv(52, 75%, 69%)
CMYKcmyk(0%, 10.3%, 74.9%, 31.4%)
CIE-LABlab(64.49, -5.79, 57.75)
CIE-LCHlch(64.49, 58.04, 95.73°)
OKLaboklab(69.19% -0.0221 0.1271)
OKLCHoklch(69.19% 0.129 99.9)
XYZxyz(30.1922, 33.4112, 7.2411)
Luminance0.3341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D2C #2C3EAF
analogous
#AF5C2C #AF9D2C #7FAF2C
triadic
#AF9D2C #2CAF9D #9D2CAF
tetradic
#AF9D2C #2CAF5C #2C3EAF #AF2C7F
square
#AF9D2C #2CAF5C #2C3EAF #AF2C7F
split-complementary
#AF9D2C #2C7FAF #5C2CAF
monochromatic
#4D4513 #7E7120 #AF9D2C #D1BE47 #DDCF78

Accessibility & contrast

On white

2.73
#AF9D2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#AF9D2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D2C
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D2C#FFFFFF#000000##000000
##AF9D2C1.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9917
Deuteranopia (green-blind)
#B19F34
Tritanopia (blue-blind)
#BD9187
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9d2c;
/* rgb */ color: rgb(175, 157, 44);
/* oklch */ color: oklch(69.2% 0.129 99.9);
Tailwind
colors: {
  custom: {
    50: '#cbb96e',
    500: '#af9d2c',
    950: '#000000',
  },
}
SCSS
$custom: #af9d2c;
$custom-light: #cbb96e;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d2c",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 44
  },
  "hsl": {
    "h": 51.756,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.69194,
    "c": 0.12898,
    "h": 99.9
  },
  "luminance": 0.3341
}

Semantic roles & 50–950 ramp

primary
#AF9D2C
secondary
#727DC5
accent
#5BE345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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