#AF8F2A#AF8F2A

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

Color values

HEX#AF8F2A
RGBrgb(175, 143, 42)
HSLhsl(46, 61%, 43%)
HSVhsv(46, 76%, 69%)
CMYKcmyk(0%, 18.3%, 76%, 31.4%)
CIE-LABlab(60.72, 1.70, 54.90)
CIE-LCHlch(60.72, 54.93, 88.23°)
OKLaboklab(66.21% -0.001 0.1206)
OKLCHoklch(66.21% 0.121 90.5)
XYZxyz(27.9212, 28.9278, 6.3030)
Luminance0.2893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8F2A #2A4AAF
analogous
#AF4D2A #AF8F2A #8CAF2A
triadic
#AF8F2A #2AAF8F #8F2AAF
tetradic
#AF8F2A #2AAF4D #2A4AAF #AF2A8C
square
#AF8F2A #2AAF4D #2A4AAF #AF2A8C
split-complementary
#AF8F2A #2A8CAF #4D2AAF
monochromatic
#4C3E12 #7E671E #AF8F2A #D2B044 #DEC575

Accessibility & contrast

On white

3.09
#AF8F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#AF8F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8F2A
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8F2A#FFFFFF#000000##000000
##AF8F2A1.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D19
Deuteranopia (green-blind)
#A79630
Tritanopia (blue-blind)
#BE837B
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8f2a;
/* rgb */ color: rgb(175, 143, 42);
/* oklch */ color: oklch(66.2% 0.121 90.5);
Tailwind
colors: {
  custom: {
    50: '#cbaf6b',
    500: '#af8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #af8f2a;
$custom-light: #cbaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#af8f2a",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 45.564,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.66205,
    "c": 0.12062,
    "h": 90.5
  },
  "luminance": 0.28926
}

Semantic roles & 50–950 ramp

primary
#AF8F2A
secondary
#6F84C6
accent
#6AE443
background
#FDFAF6
surface
#FAF4EC
border
#D3CEC7
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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