#AF9226#AF9226

#AF9226 is a light, vivid yellow. Relative luminance 0.298; OKLCH L 66.8% C 0.125 H 93.0°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#AF9226
RGBrgb(175, 146, 38)
HSLhsl(47, 64%, 42%)
HSVhsv(47, 78%, 69%)
CMYKcmyk(0%, 16.6%, 78.3%, 31.4%)
CIE-LABlab(61.49, -0.11, 57.09)
CIE-LCHlch(61.49, 57.09, 90.11°)
OKLaboklab(66.81% -0.0065 0.1245)
OKLCHoklch(66.81% 0.125 93)
XYZxyz(28.3095, 29.8134, 6.0968)
Luminance0.2981 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9226 #2643AF
analogous
#AF4E26 #AF9226 #88AF26
triadic
#AF9226 #26AF92 #9226AF
tetradic
#AF9226 #26AF4E #2643AF #AF2688
square
#AF9226 #26AF4E #2643AF #AF2688
split-complementary
#AF9226 #2688AF #4E26AF
monochromatic
#4A3E10 #7D681B #AF9226 #D5B53D #E0C870

Accessibility & contrast

On white

3.02
#AF9226 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#AF9226 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF9226
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9226#FFFFFF#000000##000000
##AF92261.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A3900F
Deuteranopia (green-blind)
#AA982D
Tritanopia (blue-blind)
#BE867D
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af9226;
/* rgb */ color: rgb(175, 146, 38);
/* oklch */ color: oklch(66.8% 0.125 93.0);
Tailwind
colors: {
  custom: {
    50: '#cbb169',
    500: '#af9226',
    950: '#000000',
  },
}
SCSS
$custom: #af9226;
$custom-light: #cbb169;
$custom-dark: #000000;
JSON
{
  "hex": "#af9226",
  "rgb": {
    "r": 175,
    "g": 146,
    "b": 38
  },
  "hsl": {
    "h": 47.299,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.66809,
    "c": 0.12463,
    "h": 93
  },
  "luminance": 0.29812
}

Semantic roles & 50–950 ramp

primary
#AF9226
secondary
#6A7EC7
accent
#64E740
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF9226

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

Preview Lab → · Contrast checker → · Palette generator →

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