#AF9C2C#AF9C2C

#AF9C2C is a light, vivid yellow. Relative luminance 0.331; OKLCH L 69.0% C 0.128 H 99.2°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#AF9C2C
RGBrgb(175, 156, 44)
HSLhsl(51, 60%, 43%)
HSVhsv(51, 75%, 69%)
CMYKcmyk(0%, 10.9%, 74.9%, 31.4%)
CIE-LABlab(64.22, -5.26, 57.49)
CIE-LCHlch(64.22, 57.73, 95.22°)
OKLaboklab(68.98% -0.0206 0.1265)
OKLCHoklch(68.98% 0.128 99.2)
XYZxyz(30.0238, 33.0742, 7.1849)
Luminance0.3307 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9C2C #2C3FAF
analogous
#AF5B2C #AF9C2C #80AF2C
triadic
#AF9C2C #2CAF9C #9C2CAF
tetradic
#AF9C2C #2CAF5B #2C3FAF #AF2C80
square
#AF9C2C #2CAF5B #2C3FAF #AF2C80
split-complementary
#AF9C2C #2C80AF #5B2CAF
monochromatic
#4D4513 #7E7020 #AF9C2C #D1BD47 #DDCE78

Accessibility & contrast

On white

2.76
#AF9C2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#AF9C2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9C2C
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9C2C#FFFFFF#000000##000000
##AF9C2C1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9817
Deuteranopia (green-blind)
#B19F33
Tritanopia (blue-blind)
#BD9086
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9c2c;
/* rgb */ color: rgb(175, 156, 44);
/* oklch */ color: oklch(69.0% 0.128 99.2);
Tailwind
colors: {
  custom: {
    50: '#cbb86d',
    500: '#af9c2c',
    950: '#000000',
  },
}
SCSS
$custom: #af9c2c;
$custom-light: #cbb86d;
$custom-dark: #000000;
JSON
{
  "hex": "#af9c2c",
  "rgb": {
    "r": 175,
    "g": 156,
    "b": 44
  },
  "hsl": {
    "h": 51.298,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.68979,
    "c": 0.12819,
    "h": 99.2
  },
  "luminance": 0.33073
}

Semantic roles & 50–950 ramp

primary
#AF9C2C
secondary
#727EC5
accent
#5CE345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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