#AF9D28#AF9D28

#AF9D28 is a light, vivid yellow. Relative luminance 0.334; OKLCH L 69.2% C 0.131 H 100.1°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#AF9D28
RGBrgb(175, 157, 40)
HSLhsl(52, 63%, 42%)
HSVhsv(52, 77%, 69%)
CMYKcmyk(0%, 10.3%, 77.1%, 31.4%)
CIE-LABlab(64.47, -5.96, 59.14)
CIE-LCHlch(64.47, 59.44, 95.76°)
OKLaboklab(69.17% -0.023 0.1293)
OKLCHoklch(69.17% 0.131 100.1)
XYZxyz(30.1206, 33.3826, 6.8640)
Luminance0.3338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D28 #283AAF
analogous
#AF5A28 #AF9D28 #7EAF28
triadic
#AF9D28 #28AF9D #9D28AF
tetradic
#AF9D28 #28AF5A #283AAF #AF287E
square
#AF9D28 #28AF5A #283AAF #AF287E
split-complementary
#AF9D28 #287EAF #5A28AF
monochromatic
#4B4411 #7D701D #AF9D28 #D4C041 #DFD073

Accessibility & contrast

On white

2.74
#AF9D28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#AF9D28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D28
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D28#FFFFFF#000000##000000
##AF9D281.002.747.687.68
#FFFFFF2.741.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD990E
Deuteranopia (green-blind)
#B29F30
Tritanopia (blue-blind)
#BD9187
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9d28;
/* rgb */ color: rgb(175, 157, 40);
/* oklch */ color: oklch(69.2% 0.131 100.1);
Tailwind
colors: {
  custom: {
    50: '#cbb96c',
    500: '#af9d28',
    950: '#000000',
  },
}
SCSS
$custom: #af9d28;
$custom-light: #cbb96c;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d28",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 40
  },
  "hsl": {
    "h": 52,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.69169,
    "c": 0.13127,
    "h": 100.1
  },
  "luminance": 0.33381
}

Semantic roles & 50–950 ramp

primary
#AF9D28
secondary
#6D79C6
accent
#58E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9D28

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

Preview Lab → · Contrast checker → · Palette generator →

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