#AF9228#AF9228

#AF9228 is a light, vivid yellow. Relative luminance 0.298; OKLCH L 66.8% C 0.124 H 92.8°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#AF9228
RGBrgb(175, 146, 40)
HSLhsl(47, 63%, 42%)
HSVhsv(47, 77%, 69%)
CMYKcmyk(0%, 16.6%, 77.1%, 31.4%)
CIE-LABlab(61.50, -0.03, 56.39)
CIE-LCHlch(61.50, 56.39, 90.03°)
OKLaboklab(66.82% -0.0061 0.1234)
OKLCHoklch(66.82% 0.124 92.8)
XYZxyz(28.3427, 29.8266, 6.2713)
Luminance0.2983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9228 #2845AF
analogous
#AF4E28 #AF9228 #89AF28
triadic
#AF9228 #28AF92 #9228AF
tetradic
#AF9228 #28AF4E #2845AF #AF2889
square
#AF9228 #28AF4E #2845AF #AF2889
split-complementary
#AF9228 #2889AF #4E28AF
monochromatic
#4B3F11 #7D681D #AF9228 #D4B441 #DFC873

Accessibility & contrast

On white

3.02
#AF9228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#AF9228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF9228
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9228#FFFFFF#000000##000000
##AF92281.003.026.976.97
#FFFFFF3.021.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29014
Deuteranopia (green-blind)
#AA982E
Tritanopia (blue-blind)
#BE867E
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af9228;
/* rgb */ color: rgb(175, 146, 40);
/* oklch */ color: oklch(66.8% 0.124 92.8);
Tailwind
colors: {
  custom: {
    50: '#cbb16a',
    500: '#af9228',
    950: '#000000',
  },
}
SCSS
$custom: #af9228;
$custom-light: #cbb16a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9228",
  "rgb": {
    "r": 175,
    "g": 146,
    "b": 40
  },
  "hsl": {
    "h": 47.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.66821,
    "c": 0.12353,
    "h": 92.8
  },
  "luminance": 0.29825
}

Semantic roles & 50–950 ramp

primary
#AF9228
secondary
#6D80C6
accent
#65E642
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF9228

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

Preview Lab → · Contrast checker → · Palette generator →

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