#AF9C26#AF9C26

#AF9C26 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.61:1 contrast (WCAG AA passes).

Color values

HEX#AF9C26
RGBrgb(175, 156, 38)
HSLhsl(52, 64%, 42%)
HSVhsv(52, 78%, 69%)
CMYKcmyk(0%, 10.9%, 78.3%, 31.4%)
CIE-LABlab(64.19, -5.51, 59.56)
CIE-LCHlch(64.19, 59.81, 95.28°)
OKLaboklab(68.94% -0.0219 0.1297)
OKLCHoklch(68.94% 0.132 99.6)
XYZxyz(29.9190, 33.0323, 6.6333)
Luminance0.3303 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9C26 #2639AF
analogous
#AF5826 #AF9C26 #7EAF26
triadic
#AF9C26 #26AF9C #9C26AF
tetradic
#AF9C26 #26AF58 #2639AF #AF267E
square
#AF9C26 #26AF58 #2639AF #AF267E
split-complementary
#AF9C26 #267EAF #5826AF
monochromatic
#4A4210 #7D6F1B #AF9C26 #D5C03D #E0D070

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9C26#FFFFFF#000000##000000
##AF9C261.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)
#AC9809
Deuteranopia (green-blind)
#B19F2F
Tritanopia (blue-blind)
#BD9086
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9c26;
/* rgb */ color: rgb(175, 156, 38);
/* oklch */ color: oklch(68.9% 0.132 99.6);
Tailwind
colors: {
  custom: {
    50: '#cbb86b',
    500: '#af9c26',
    950: '#000000',
  },
}
SCSS
$custom: #af9c26;
$custom-light: #cbb86b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9c26",
  "rgb": {
    "r": 175,
    "g": 156,
    "b": 38
  },
  "hsl": {
    "h": 51.679,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.68941,
    "c": 0.13157,
    "h": 99.6
  },
  "luminance": 0.33031
}

Semantic roles & 50–950 ramp

primary
#AF9C26
secondary
#6A77C7
accent
#58E740
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9C26

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

Preview Lab → · Contrast checker → · Palette generator →

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