#AF9A26#AF9A26

#AF9A26 is a light, vivid yellow. Relative luminance 0.324; OKLCH L 68.5% C 0.130 H 98.3°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#AF9A26
RGBrgb(175, 154, 38)
HSLhsl(51, 64%, 42%)
HSVhsv(51, 78%, 69%)
CMYKcmyk(0%, 12%, 78.3%, 31.4%)
CIE-LABlab(63.64, -4.44, 59.06)
CIE-LCHlch(63.64, 59.23, 94.30°)
OKLaboklab(68.51% -0.0188 0.1287)
OKLCHoklch(68.51% 0.13 98.3)
XYZxyz(29.5862, 32.3666, 6.5223)
Luminance0.3236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9A26 #263BAF
analogous
#AF5626 #AF9A26 #80AF26
triadic
#AF9A26 #26AF9A #9A26AF
tetradic
#AF9A26 #26AF56 #263BAF #AF2680
square
#AF9A26 #26AF56 #263BAF #AF2680
split-complementary
#AF9A26 #2680AF #5626AF
monochromatic
#4A4210 #7D6E1B #AF9A26 #D5BE3D #E0CF70

Accessibility & contrast

On white

2.81
#AF9A26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#AF9A26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9A26
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9A26#FFFFFF#000000##000000
##AF9A261.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA960A
Deuteranopia (green-blind)
#AF9D2E
Tritanopia (blue-blind)
#BD8E84
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9a26;
/* rgb */ color: rgb(175, 154, 38);
/* oklch */ color: oklch(68.5% 0.130 98.3);
Tailwind
colors: {
  custom: {
    50: '#cbb76a',
    500: '#af9a26',
    950: '#000000',
  },
}
SCSS
$custom: #af9a26;
$custom-light: #cbb76a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9a26",
  "rgb": {
    "r": 175,
    "g": 154,
    "b": 38
  },
  "hsl": {
    "h": 50.803,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.68511,
    "c": 0.13005,
    "h": 98.3
  },
  "luminance": 0.32365
}

Semantic roles & 50–950 ramp

primary
#AF9A26
secondary
#6A78C7
accent
#5AE740
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9A26

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

Preview Lab → · Contrast checker → · Palette generator →

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