#AF9926#AF9926

#AF9926 is a light, vivid yellow. Relative luminance 0.320; OKLCH L 68.3% C 0.129 H 97.7°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#AF9926
RGBrgb(175, 153, 38)
HSLhsl(50, 64%, 42%)
HSVhsv(50, 78%, 69%)
CMYKcmyk(0%, 12.6%, 78.3%, 31.4%)
CIE-LABlab(63.37, -3.90, 58.82)
CIE-LCHlch(63.37, 58.95, 93.79°)
OKLaboklab(68.3% -0.0173 0.1281)
OKLCHoklch(68.3% 0.129 97.7)
XYZxyz(29.4218, 32.0379, 6.4676)
Luminance0.3204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9926 #263CAF
analogous
#AF5526 #AF9926 #81AF26
triadic
#AF9926 #26AF99 #9926AF
tetradic
#AF9926 #26AF55 #263CAF #AF2681
square
#AF9926 #26AF55 #263CAF #AF2681
split-complementary
#AF9926 #2681AF #5526AF
monochromatic
#4A4110 #7D6D1B #AF9926 #D5BD3D #E0CE70

Accessibility & contrast

On white

2.84
#AF9926 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#AF9926 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9926
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9926#FFFFFF#000000##000000
##AF99261.002.847.417.41
#FFFFFF2.841.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9950B
Deuteranopia (green-blind)
#AF9D2E
Tritanopia (blue-blind)
#BD8D83
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9926;
/* rgb */ color: rgb(175, 153, 38);
/* oklch */ color: oklch(68.3% 0.129 97.7);
Tailwind
colors: {
  custom: {
    50: '#cbb66a',
    500: '#af9926',
    950: '#000000',
  },
}
SCSS
$custom: #af9926;
$custom-light: #cbb66a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9926",
  "rgb": {
    "r": 175,
    "g": 153,
    "b": 38
  },
  "hsl": {
    "h": 50.365,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.68297,
    "c": 0.12932,
    "h": 97.7
  },
  "luminance": 0.32036
}

Semantic roles & 50–950 ramp

primary
#AF9926
secondary
#6A79C7
accent
#5BE740
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9926

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

Preview Lab → · Contrast checker → · Palette generator →

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