#AF9A28#AF9A28

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

Color values

HEX#AF9A28
RGBrgb(175, 154, 40)
HSLhsl(51, 63%, 42%)
HSVhsv(51, 77%, 69%)
CMYKcmyk(0%, 12%, 77.1%, 31.4%)
CIE-LABlab(63.66, -4.36, 58.39)
CIE-LCHlch(63.66, 58.55, 94.27°)
OKLaboklab(68.52% -0.0184 0.1277)
OKLCHoklch(68.52% 0.129 98.2)
XYZxyz(29.6193, 32.3799, 6.6969)
Luminance0.3238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9A28 #283DAF
analogous
#AF5728 #AF9A28 #80AF28
triadic
#AF9A28 #28AF9A #9A28AF
tetradic
#AF9A28 #28AF57 #283DAF #AF2880
square
#AF9A28 #28AF57 #283DAF #AF2880
split-complementary
#AF9A28 #2880AF #5728AF
monochromatic
#4B4211 #7D6E1D #AF9A28 #D4BD41 #DFCE73

Accessibility & contrast

On white

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

On black

7.48
#AF9A28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9A28
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9A28#FFFFFF#000000##000000
##AF9A281.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9a28;
/* rgb */ color: rgb(175, 154, 40);
/* oklch */ color: oklch(68.5% 0.129 98.2);
Tailwind
colors: {
  custom: {
    50: '#cbb76b',
    500: '#af9a28',
    950: '#000000',
  },
}
SCSS
$custom: #af9a28;
$custom-light: #cbb76b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9a28",
  "rgb": {
    "r": 175,
    "g": 154,
    "b": 40
  },
  "hsl": {
    "h": 50.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.68523,
    "c": 0.12897,
    "h": 98.2
  },
  "luminance": 0.32378
}

Semantic roles & 50–950 ramp

primary
#AF9A28
secondary
#6D7BC6
accent
#5BE642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9A28

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

Preview Lab → · Contrast checker → · Palette generator →

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