#AF9A23#AF9A23

#AF9A23 is a light, vivid yellow. Relative luminance 0.323; OKLCH L 68.5% C 0.132 H 98.5°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#AF9A23
RGBrgb(175, 154, 35)
HSLhsl(51, 67%, 41%)
HSVhsv(51, 80%, 69%)
CMYKcmyk(0%, 12%, 80%, 31.4%)
CIE-LABlab(63.63, -4.55, 60.03)
CIE-LCHlch(63.63, 60.20, 94.33°)
OKLaboklab(68.49% -0.0194 0.1301)
OKLCHoklch(68.49% 0.132 98.5)
XYZxyz(29.5397, 32.3481, 6.2776)
Luminance0.3235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9A23 #2338AF
analogous
#AF5423 #AF9A23 #7EAF23
triadic
#AF9A23 #23AF9A #9A23AF
tetradic
#AF9A23 #23AF54 #2338AF #AF237E
square
#AF9A23 #23AF54 #2338AF #AF237E
split-complementary
#AF9A23 #237EAF #5423AF
monochromatic
#49400F #7C6D19 #AF9A23 #D7BF38 #E1D06B

Accessibility & contrast

On white

2.81
#AF9A23 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#AF9A23 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9A23
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9A23#FFFFFF#000000##000000
##AF9A231.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9602
Deuteranopia (green-blind)
#B09D2C
Tritanopia (blue-blind)
#BD8E84
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9a23;
/* rgb */ color: rgb(175, 154, 35);
/* oklch */ color: oklch(68.5% 0.132 98.5);
Tailwind
colors: {
  custom: {
    50: '#cbb769',
    500: '#af9a23',
    950: '#000000',
  },
}
SCSS
$custom: #af9a23;
$custom-light: #cbb769;
$custom-dark: #000000;
JSON
{
  "hex": "#af9a23",
  "rgb": {
    "r": 175,
    "g": 154,
    "b": 35
  },
  "hsl": {
    "h": 51,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.68494,
    "c": 0.13158,
    "h": 98.5
  },
  "luminance": 0.32347
}

Semantic roles & 50–950 ramp

primary
#AF9A23
secondary
#6675C7
accent
#58EA3E
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9A23

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

Preview Lab → · Contrast checker → · Palette generator →

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