#AF9C28#AF9C28

#AF9C28 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 69.0% C 0.130 H 99.5°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#AF9C28
RGBrgb(175, 156, 40)
HSLhsl(52, 63%, 42%)
HSVhsv(52, 77%, 69%)
CMYKcmyk(0%, 10.9%, 77.1%, 31.4%)
CIE-LABlab(64.20, -5.43, 58.89)
CIE-LCHlch(64.20, 59.14, 95.27°)
OKLaboklab(68.95% -0.0214 0.1287)
OKLCHoklch(68.95% 0.13 99.5)
XYZxyz(29.9522, 33.0456, 6.8078)
Luminance0.3304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9C28 #283BAF
analogous
#AF5928 #AF9C28 #7EAF28
triadic
#AF9C28 #28AF9C #9C28AF
tetradic
#AF9C28 #28AF59 #283BAF #AF287E
square
#AF9C28 #28AF59 #283BAF #AF287E
split-complementary
#AF9C28 #287EAF #5928AF
monochromatic
#4B4311 #7D701D #AF9C28 #D4BF41 #DFD073

Accessibility & contrast

On white

2.76
#AF9C28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#AF9C28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9C28
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9C28#FFFFFF#000000##000000
##AF9C281.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC980F
Deuteranopia (green-blind)
#B19F30
Tritanopia (blue-blind)
#BD9086
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9c28;
/* rgb */ color: rgb(175, 156, 40);
/* oklch */ color: oklch(69.0% 0.130 99.5);
Tailwind
colors: {
  custom: {
    50: '#cbb86c',
    500: '#af9c28',
    950: '#000000',
  },
}
SCSS
$custom: #af9c28;
$custom-light: #cbb86c;
$custom-dark: #000000;
JSON
{
  "hex": "#af9c28",
  "rgb": {
    "r": 175,
    "g": 156,
    "b": 40
  },
  "hsl": {
    "h": 51.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.68953,
    "c": 0.13049,
    "h": 99.5
  },
  "luminance": 0.33044
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF9C28

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

Preview Lab → · Contrast checker → · Palette generator →

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