#AF9D26#AF9D26

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

Color values

HEX#AF9D26
RGBrgb(175, 157, 38)
HSLhsl(52, 64%, 42%)
HSVhsv(52, 78%, 69%)
CMYKcmyk(0%, 10.3%, 78.3%, 31.4%)
CIE-LABlab(64.46, -6.04, 59.80)
CIE-LCHlch(64.46, 60.11, 95.77°)
OKLaboklab(69.16% -0.0234 0.1303)
OKLCHoklch(69.16% 0.132 100.2)
XYZxyz(30.0875, 33.3693, 6.6895)
Luminance0.3337 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D26 #2638AF
analogous
#AF5926 #AF9D26 #7DAF26
triadic
#AF9D26 #26AF9D #9D26AF
tetradic
#AF9D26 #26AF59 #2638AF #AF267D
square
#AF9D26 #26AF59 #2638AF #AF267D
split-complementary
#AF9D26 #267DAF #5926AF
monochromatic
#4A4310 #7D701B #AF9D26 #D5C13D #E0D170

Accessibility & contrast

On white

2.74
#AF9D26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#AF9D26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D26
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D26#FFFFFF#000000##000000
##AF9D261.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9d26;
/* rgb */ color: rgb(175, 157, 38);
/* oklch */ color: oklch(69.2% 0.132 100.2);
Tailwind
colors: {
  custom: {
    50: '#cbb96b',
    500: '#af9d26',
    950: '#000000',
  },
}
SCSS
$custom: #af9d26;
$custom-light: #cbb96b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d26",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 38
  },
  "hsl": {
    "h": 52.117,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.69157,
    "c": 0.13235,
    "h": 100.2
  },
  "luminance": 0.33368
}

Semantic roles & 50–950 ramp

primary
#AF9D26
secondary
#6A76C7
accent
#56E740
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9D26

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

Preview Lab → · Contrast checker → · Palette generator →

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