#AF8F2D#AF8F2D

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

Color values

HEX#AF8F2D
RGBrgb(175, 143, 45)
HSLhsl(45, 59%, 43%)
HSVhsv(45, 74%, 69%)
CMYKcmyk(0%, 18.3%, 74.3%, 31.4%)
CIE-LABlab(60.74, 1.84, 53.76)
CIE-LCHlch(60.74, 53.79, 88.04°)
OKLaboklab(66.23% -0.0002 0.1188)
OKLCHoklch(66.23% 0.119 90.1)
XYZxyz(27.9769, 28.9501, 6.5965)
Luminance0.2895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8F2D #2D4DAF
analogous
#AF4E2D #AF8F2D #8EAF2D
triadic
#AF8F2D #2DAF8F #8F2DAF
tetradic
#AF8F2D #2DAF4E #2D4DAF #AF2D8E
square
#AF8F2D #2DAF4E #2D4DAF #AF2D8E
split-complementary
#AF8F2D #2D8EAF #4E2DAF
monochromatic
#4E3F14 #7E6720 #AF8F2D #D0AF49 #DDC47A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF8F2D#FFFFFF#000000##000000
##AF8F2D1.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)
#9F8D1E
Deuteranopia (green-blind)
#A79632
Tritanopia (blue-blind)
#BE837C
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8f2d;
/* rgb */ color: rgb(175, 143, 45);
/* oklch */ color: oklch(66.2% 0.119 90.1);
Tailwind
colors: {
  custom: {
    50: '#cbaf6d',
    500: '#af8f2d',
    950: '#000000',
  },
}
SCSS
$custom: #af8f2d;
$custom-light: #cbaf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#af8f2d",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 45.231,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.66226,
    "c": 0.11879,
    "h": 90.1
  },
  "luminance": 0.28948
}

Semantic roles & 50–950 ramp

primary
#AF8F2D
secondary
#7387C5
accent
#6CE246
background
#FDFAF6
surface
#FAF4EC
border
#D3CEC7
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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