#AF9E28#AF9E28

#AF9E28 is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.4% C 0.132 H 100.7°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#AF9E28
RGBrgb(175, 158, 40)
HSLhsl(52, 63%, 42%)
HSVhsv(52, 77%, 69%)
CMYKcmyk(0%, 9.7%, 77.1%, 31.4%)
CIE-LABlab(64.74, -6.50, 59.39)
CIE-LCHlch(64.74, 59.75, 96.24°)
OKLaboklab(69.38% -0.0245 0.1298)
OKLCHoklch(69.38% 0.132 100.7)
XYZxyz(30.2905, 33.7223, 6.9206)
Luminance0.3372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E28 #2839AF
analogous
#AF5A28 #AF9E28 #7DAF28
triadic
#AF9E28 #28AF9E #9E28AF
tetradic
#AF9E28 #28AF5A #2839AF #AF287D
square
#AF9E28 #28AF5A #2839AF #AF287D
split-complementary
#AF9E28 #287DAF #5A28AF
monochromatic
#4B4411 #7D711D #AF9E28 #D4C141 #DFD173

Accessibility & contrast

On white

2.71
#AF9E28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#AF9E28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9E28
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9E28#FFFFFF#000000##000000
##AF9E281.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE990E
Deuteranopia (green-blind)
#B2A031
Tritanopia (blue-blind)
#BD9288
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e28;
/* rgb */ color: rgb(175, 158, 40);
/* oklch */ color: oklch(69.4% 0.132 100.7);
Tailwind
colors: {
  custom: {
    50: '#cbba6c',
    500: '#af9e28',
    950: '#000000',
  },
}
SCSS
$custom: #af9e28;
$custom-light: #cbba6c;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e28",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 40
  },
  "hsl": {
    "h": 52.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.69385,
    "c": 0.13207,
    "h": 100.7
  },
  "luminance": 0.33721
}

Semantic roles & 50–950 ramp

primary
#AF9E28
secondary
#6D78C6
accent
#57E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9E28

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

Preview Lab → · Contrast checker → · Palette generator →

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