#AF9C25#AF9C25

#AF9C25 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.9% C 0.132 H 99.6°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#AF9C25
RGBrgb(175, 156, 37)
HSLhsl(52, 65%, 42%)
HSVhsv(52, 79%, 69%)
CMYKcmyk(0%, 10.9%, 78.9%, 31.4%)
CIE-LABlab(64.18, -5.55, 59.88)
CIE-LCHlch(64.18, 60.14, 95.29°)
OKLaboklab(68.94% -0.0221 0.1302)
OKLCHoklch(68.94% 0.132 99.6)
XYZxyz(29.9031, 33.0260, 6.5495)
Luminance0.3302 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9C25 #2538AF
analogous
#AF5725 #AF9C25 #7DAF25
triadic
#AF9C25 #25AF9C #9C25AF
tetradic
#AF9C25 #25AF57 #2538AF #AF257D
square
#AF9C25 #25AF57 #2538AF #AF257D
split-complementary
#AF9C25 #257DAF #5725AF
monochromatic
#4A4210 #7C6F1A #AF9C25 #D6C03C #E0D16E

Accessibility & contrast

On white

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

On black

7.60
#AF9C25 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9C25
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9C25#FFFFFF#000000##000000
##AF9C251.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9c25;
/* rgb */ color: rgb(175, 156, 37);
/* oklch */ color: oklch(68.9% 0.132 99.6);
Tailwind
colors: {
  custom: {
    50: '#cbb86a',
    500: '#af9c25',
    950: '#000000',
  },
}
SCSS
$custom: #af9c25;
$custom-light: #cbb86a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9c25",
  "rgb": {
    "r": 175,
    "g": 156,
    "b": 37
  },
  "hsl": {
    "h": 51.739,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.68936,
    "c": 0.13209,
    "h": 99.6
  },
  "luminance": 0.33024
}

Semantic roles & 50–950 ramp

primary
#AF9C25
secondary
#6976C7
accent
#57E840
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9C25

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

Preview Lab → · Contrast checker → · Palette generator →

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