#AF9822#AF9822

#AF9822 is a light, vivid yellow. Relative luminance 0.317; OKLCH L 68.1% C 0.131 H 97.3°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#AF9822
RGBrgb(175, 152, 34)
HSLhsl(50, 67%, 41%)
HSVhsv(50, 81%, 69%)
CMYKcmyk(0%, 13.1%, 80.6%, 31.4%)
CIE-LABlab(63.08, -3.51, 59.86)
CIE-LCHlch(63.08, 59.96, 93.35°)
OKLaboklab(68.06% -0.0166 0.1296)
OKLCHoklch(68.06% 0.131 97.3)
XYZxyz(29.1977, 31.6875, 6.0915)
Luminance0.3169 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9822 #2239AF
analogous
#AF5122 #AF9822 #7FAF22
triadic
#AF9822 #22AF98 #9822AF
tetradic
#AF9822 #22AF51 #2239AF #AF227F
square
#AF9822 #22AF51 #2239AF #AF227F
split-complementary
#AF9822 #227FAF #5122AF
monochromatic
#493F0E #7C6B18 #AF9822 #D8BE36 #E2CE69

Accessibility & contrast

On white

2.86
#AF9822 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#AF9822 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9822
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9822#FFFFFF#000000##000000
##AF98221.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#AE9C2B
Tritanopia (blue-blind)
#BD8C82
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9822;
/* rgb */ color: rgb(175, 152, 34);
/* oklch */ color: oklch(68.1% 0.131 97.3);
Tailwind
colors: {
  custom: {
    50: '#cbb568',
    500: '#af9822',
    950: '#000000',
  },
}
SCSS
$custom: #af9822;
$custom-light: #cbb568;
$custom-dark: #000000;
JSON
{
  "hex": "#af9822",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 50.213,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.6806,
    "c": 0.13063,
    "h": 97.3
  },
  "luminance": 0.31686
}

Semantic roles & 50–950 ramp

primary
#AF9822
secondary
#6575C8
accent
#5AEA3D
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9822

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

Preview Lab → · Contrast checker → · Palette generator →

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