#AF8F22#AF8F22

#AF8F22 is a light, vivid yellow. Relative luminance 0.289; OKLCH L 66.2% C 0.125 H 91.2°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#AF8F22
RGBrgb(175, 143, 34)
HSLhsl(46, 67%, 41%)
HSVhsv(46, 81%, 69%)
CMYKcmyk(0%, 18.3%, 80.6%, 31.4%)
CIE-LABlab(60.67, 1.38, 57.72)
CIE-LCHlch(60.67, 57.73, 88.63°)
OKLaboklab(66.15% -0.0027 0.125)
OKLCHoklch(66.15% 0.125 91.2)
XYZxyz(27.7921, 28.8761, 5.6229)
Luminance0.2887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8F22 #2242AF
analogous
#AF4822 #AF8F22 #88AF22
triadic
#AF8F22 #22AF8F #8F22AF
tetradic
#AF8F22 #22AF48 #2242AF #AF2288
square
#AF8F22 #22AF48 #2242AF #AF2288
split-complementary
#AF8F22 #2288AF #4822AF
monochromatic
#493B0E #7C6518 #AF8F22 #D8B336 #E2C769

Accessibility & contrast

On white

3.10
#AF8F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#AF8F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8F22
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8F22#FFFFFF#000000##000000
##AF8F221.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D06
Deuteranopia (green-blind)
#A89629
Tritanopia (blue-blind)
#BE827B
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8f22;
/* rgb */ color: rgb(175, 143, 34);
/* oklch */ color: oklch(66.2% 0.125 91.2);
Tailwind
colors: {
  custom: {
    50: '#cbaf67',
    500: '#af8f22',
    950: '#000000',
  },
}
SCSS
$custom: #af8f22;
$custom-light: #cbaf67;
$custom-dark: #000000;
JSON
{
  "hex": "#af8f22",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 46.383,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.66154,
    "c": 0.12498,
    "h": 91.2
  },
  "luminance": 0.28874
}

Semantic roles & 50–950 ramp

primary
#AF8F22
secondary
#657BC8
accent
#65EA3D
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141006
muted
#837F7A

Preview Lab

Preview with #AF8F22

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

Preview Lab → · Contrast checker → · Palette generator →

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