#AF8E22#AF8E22

#AF8E22 is a light, vivid yellow. Relative luminance 0.286; OKLCH L 65.9% C 0.124 H 90.5°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#AF8E22
RGBrgb(175, 142, 34)
HSLhsl(46, 67%, 41%)
HSVhsv(46, 81%, 69%)
CMYKcmyk(0%, 18.9%, 80.6%, 31.4%)
CIE-LABlab(60.41, 1.93, 57.48)
CIE-LCHlch(60.41, 57.51, 88.07°)
OKLaboklab(65.94% -0.0011 0.1244)
OKLCHoklch(65.94% 0.124 90.5)
XYZxyz(27.6426, 28.5772, 5.5731)
Luminance0.2858 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8E22 #2243AF
analogous
#AF4722 #AF8E22 #89AF22
triadic
#AF8E22 #22AF8E #8E22AF
tetradic
#AF8E22 #22AF47 #2243AF #AF2289
square
#AF8E22 #22AF47 #2243AF #AF2289
split-complementary
#AF8E22 #2289AF #4722AF
monochromatic
#493B0E #7C6418 #AF8E22 #D8B236 #E2C669

Accessibility & contrast

On white

3.13
#AF8E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#AF8E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8E22
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8E22#FFFFFF#000000##000000
##AF8E221.003.136.726.72
#FFFFFF3.131.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C07
Deuteranopia (green-blind)
#A79529
Tritanopia (blue-blind)
#BE817A
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8e22;
/* rgb */ color: rgb(175, 142, 34);
/* oklch */ color: oklch(65.9% 0.124 90.5);
Tailwind
colors: {
  custom: {
    50: '#cbae67',
    500: '#af8e22',
    950: '#000000',
  },
}
SCSS
$custom: #af8e22;
$custom-light: #cbae67;
$custom-dark: #000000;
JSON
{
  "hex": "#af8e22",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 45.957,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.65945,
    "c": 0.12444,
    "h": 90.5
  },
  "luminance": 0.28575
}

Semantic roles & 50–950 ramp

primary
#AF8E22
secondary
#657CC8
accent
#66EA3D
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141006
muted
#837F7A

Preview Lab

Preview with #AF8E22

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

Preview Lab → · Contrast checker → · Palette generator →

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