#AF9928#AF9928

#AF9928 is a light, vivid yellow. Relative luminance 0.321; OKLCH L 68.3% C 0.128 H 97.6°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#AF9928
RGBrgb(175, 153, 40)
HSLhsl(50, 63%, 42%)
HSVhsv(50, 77%, 69%)
CMYKcmyk(0%, 12.6%, 77.1%, 31.4%)
CIE-LABlab(63.39, -3.82, 58.14)
CIE-LCHlch(63.39, 58.27, 93.76°)
OKLaboklab(68.31% -0.0169 0.1271)
OKLCHoklch(68.31% 0.128 97.6)
XYZxyz(29.4550, 32.0512, 6.6421)
Luminance0.3205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9928 #283EAF
analogous
#AF5528 #AF9928 #82AF28
triadic
#AF9928 #28AF99 #9928AF
tetradic
#AF9928 #28AF55 #283EAF #AF2882
square
#AF9928 #28AF55 #283EAF #AF2882
split-complementary
#AF9928 #2882AF #5528AF
monochromatic
#4B4211 #7D6D1D #AF9928 #D4BC41 #DFCD73

Accessibility & contrast

On white

2.83
#AF9928 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#AF9928 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9928
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9928#FFFFFF#000000##000000
##AF99281.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99510
Deuteranopia (green-blind)
#AF9D30
Tritanopia (blue-blind)
#BD8D83
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9928;
/* rgb */ color: rgb(175, 153, 40);
/* oklch */ color: oklch(68.3% 0.128 97.6);
Tailwind
colors: {
  custom: {
    50: '#cbb66b',
    500: '#af9928',
    950: '#000000',
  },
}
SCSS
$custom: #af9928;
$custom-light: #cbb66b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9928",
  "rgb": {
    "r": 175,
    "g": 153,
    "b": 40
  },
  "hsl": {
    "h": 50.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.68309,
    "c": 0.12823,
    "h": 97.6
  },
  "luminance": 0.3205
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF9928

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

Preview Lab → · Contrast checker → · Palette generator →

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