#AF9722#AF9722

#AF9722 is a light, vivid yellow. Relative luminance 0.314; OKLCH L 67.8% C 0.130 H 96.7°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#AF9722
RGBrgb(175, 151, 34)
HSLhsl(50, 67%, 41%)
HSVhsv(50, 81%, 69%)
CMYKcmyk(0%, 13.7%, 80.6%, 31.4%)
CIE-LABlab(62.81, -2.97, 59.62)
CIE-LCHlch(62.81, 59.69, 92.85°)
OKLaboklab(67.85% -0.015 0.1291)
OKLCHoklch(67.85% 0.13 96.7)
XYZxyz(29.0361, 31.3643, 6.0376)
Luminance0.3136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9722 #223AAF
analogous
#AF5022 #AF9722 #80AF22
triadic
#AF9722 #22AF97 #9722AF
tetradic
#AF9722 #22AF50 #223AAF #AF2280
square
#AF9722 #22AF50 #223AAF #AF2280
split-complementary
#AF9722 #2280AF #5022AF
monochromatic
#493F0E #7C6B18 #AF9722 #D8BC36 #E2CD69

Accessibility & contrast

On white

2.89
#AF9722 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#AF9722 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9722
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9722#FFFFFF#000000##000000
##AF97221.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79401
Deuteranopia (green-blind)
#AD9B2B
Tritanopia (blue-blind)
#BD8B81
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af9722;
/* rgb */ color: rgb(175, 151, 34);
/* oklch */ color: oklch(67.8% 0.130 96.7);
Tailwind
colors: {
  custom: {
    50: '#cbb568',
    500: '#af9722',
    950: '#000000',
  },
}
SCSS
$custom: #af9722;
$custom-light: #cbb568;
$custom-dark: #000000;
JSON
{
  "hex": "#af9722",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 34
  },
  "hsl": {
    "h": 49.787,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.67847,
    "c": 0.12993,
    "h": 96.7
  },
  "luminance": 0.31363
}

Semantic roles & 50–950 ramp

primary
#AF9722
secondary
#6576C8
accent
#5BEA3D
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9722

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

Preview Lab → · Contrast checker → · Palette generator →

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