#AF9B22#AF9B22

#AF9B22 is a light, vivid yellow. Relative luminance 0.327; OKLCH L 68.7% C 0.133 H 99.2°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#AF9B22
RGBrgb(175, 155, 34)
HSLhsl(51, 67%, 41%)
HSVhsv(51, 81%, 69%)
CMYKcmyk(0%, 11.4%, 80.6%, 31.4%)
CIE-LABlab(63.90, -5.12, 60.58)
CIE-LCHlch(63.90, 60.79, 94.83°)
OKLaboklab(68.7% -0.0211 0.1311)
OKLCHoklch(68.7% 0.133 99.2)
XYZxyz(29.6908, 32.6737, 6.2558)
Luminance0.3267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9B22 #2236AF
analogous
#AF5422 #AF9B22 #7CAF22
triadic
#AF9B22 #22AF9B #9B22AF
tetradic
#AF9B22 #22AF54 #2236AF #AF227C
square
#AF9B22 #22AF54 #2236AF #AF227C
split-complementary
#AF9B22 #227CAF #5422AF
monochromatic
#49400E #7C6E18 #AF9B22 #D8C136 #E2D169

Accessibility & contrast

On white

2.79
#AF9B22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#AF9B22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9B22
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9B22#FFFFFF#000000##000000
##AF9B221.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9700
Deuteranopia (green-blind)
#B09E2B
Tritanopia (blue-blind)
#BD8F85
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9b22;
/* rgb */ color: rgb(175, 155, 34);
/* oklch */ color: oklch(68.7% 0.133 99.2);
Tailwind
colors: {
  custom: {
    50: '#cbb869',
    500: '#af9b22',
    950: '#000000',
  },
}
SCSS
$custom: #af9b22;
$custom-light: #cbb869;
$custom-dark: #000000;
JSON
{
  "hex": "#af9b22",
  "rgb": {
    "r": 175,
    "g": 155,
    "b": 34
  },
  "hsl": {
    "h": 51.489,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.68704,
    "c": 0.13281,
    "h": 99.2
  },
  "luminance": 0.32672
}

Semantic roles & 50–950 ramp

primary
#AF9B22
secondary
#6573C8
accent
#56EA3D
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9B22

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

Preview Lab → · Contrast checker → · Palette generator →

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