#AF9B26#AF9B26

#AF9B26 is a light, vivid yellow. Relative luminance 0.327; OKLCH L 68.7% C 0.131 H 99.0°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#AF9B26
RGBrgb(175, 155, 38)
HSLhsl(51, 64%, 42%)
HSVhsv(51, 78%, 69%)
CMYKcmyk(0%, 11.4%, 78.3%, 31.4%)
CIE-LABlab(63.92, -4.97, 59.31)
CIE-LCHlch(63.92, 59.52, 94.79°)
OKLaboklab(68.73% -0.0203 0.1292)
OKLCHoklch(68.73% 0.131 99)
XYZxyz(29.7519, 32.6981, 6.5776)
Luminance0.3270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9B26 #263AAF
analogous
#AF5726 #AF9B26 #7FAF26
triadic
#AF9B26 #26AF9B #9B26AF
tetradic
#AF9B26 #26AF57 #263AAF #AF267F
square
#AF9B26 #26AF57 #263AAF #AF267F
split-complementary
#AF9B26 #267FAF #5726AF
monochromatic
#4A4210 #7D6E1B #AF9B26 #D5BF3D #E0CF70

Accessibility & contrast

On white

2.79
#AF9B26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#AF9B26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9B26
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9B26#FFFFFF#000000##000000
##AF9B261.002.797.547.54
#FFFFFF2.791.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB970A
Deuteranopia (green-blind)
#B09E2E
Tritanopia (blue-blind)
#BD8F85
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9b26;
/* rgb */ color: rgb(175, 155, 38);
/* oklch */ color: oklch(68.7% 0.131 99.0);
Tailwind
colors: {
  custom: {
    50: '#cbb86a',
    500: '#af9b26',
    950: '#000000',
  },
}
SCSS
$custom: #af9b26;
$custom-light: #cbb86a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9b26",
  "rgb": {
    "r": 175,
    "g": 155,
    "b": 38
  },
  "hsl": {
    "h": 51.241,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.68726,
    "c": 0.1308,
    "h": 99
  },
  "luminance": 0.32697
}

Semantic roles & 50–950 ramp

primary
#AF9B26
secondary
#6A78C7
accent
#59E740
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9B26

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

Preview Lab → · Contrast checker → · Palette generator →

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