#AF9A2E#AF9A2E

#AF9A2E is a light, vivid yellow. Relative luminance 0.324; OKLCH L 68.6% C 0.125 H 97.8°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#AF9A2E
RGBrgb(175, 154, 46)
HSLhsl(50, 58%, 43%)
HSVhsv(50, 74%, 69%)
CMYKcmyk(0%, 12%, 73.7%, 31.4%)
CIE-LABlab(63.69, -4.09, 56.24)
CIE-LCHlch(63.69, 56.39, 94.16°)
OKLaboklab(68.56% -0.017 0.1243)
OKLCHoklch(68.56% 0.125 97.8)
XYZxyz(29.7294, 32.4239, 7.2767)
Luminance0.3242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9A2E #2E43AF
analogous
#AF5A2E #AF9A2E #83AF2E
triadic
#AF9A2E #2EAF9A #9A2EAF
tetradic
#AF9A2E #2EAF5A #2E43AF #AF2E83
square
#AF9A2E #2EAF5A #2E43AF #AF2E83
split-complementary
#AF9A2E #2E83AF #5A2EAF
monochromatic
#4E4515 #7F6F21 #AF9A2E #D0BA4B #DCCC7B

Accessibility & contrast

On white

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

On black

7.48
#AF9A2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9A2E
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9A2E#FFFFFF#000000##000000
##AF9A2E1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA961C
Deuteranopia (green-blind)
#AF9D35
Tritanopia (blue-blind)
#BD8E85
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9a2e;
/* rgb */ color: rgb(175, 154, 46);
/* oklch */ color: oklch(68.6% 0.125 97.8);
Tailwind
colors: {
  custom: {
    50: '#cbb76e',
    500: '#af9a2e',
    950: '#000000',
  },
}
SCSS
$custom: #af9a2e;
$custom-light: #cbb76e;
$custom-dark: #000000;
JSON
{
  "hex": "#af9a2e",
  "rgb": {
    "r": 175,
    "g": 154,
    "b": 46
  },
  "hsl": {
    "h": 50.233,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.68563,
    "c": 0.12542,
    "h": 97.8
  },
  "luminance": 0.32422
}

Semantic roles & 50–950 ramp

primary
#AF9A2E
secondary
#7481C5
accent
#60E246
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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