#AF8F2E#AF8F2E

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

Color values

HEX#AF8F2E
RGBrgb(175, 143, 46)
HSLhsl(45, 58%, 43%)
HSVhsv(45, 74%, 69%)
CMYKcmyk(0%, 18.3%, 73.7%, 31.4%)
CIE-LABlab(60.74, 1.88, 53.36)
CIE-LCHlch(60.74, 53.40, 87.98°)
OKLaboklab(66.23% 0 0.1182)
OKLCHoklch(66.23% 0.118 90)
XYZxyz(27.9964, 28.9579, 6.6991)
Luminance0.2896 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8F2E #2E4EAF
analogous
#AF4E2E #AF8F2E #8EAF2E
triadic
#AF8F2E #2EAF8F #8F2EAF
tetradic
#AF8F2E #2EAF4E #2E4EAF #AF2E8E
square
#AF8F2E #2EAF4E #2E4EAF #AF2E8E
split-complementary
#AF8F2E #2E8EAF #4E2EAF
monochromatic
#4E4015 #7F6721 #AF8F2E #D0AF4B #DCC47B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF8F2E#FFFFFF#000000##000000
##AF8F2E1.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)
#9F8D1F
Deuteranopia (green-blind)
#A79633
Tritanopia (blue-blind)
#BE837C
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8f2e;
/* rgb */ color: rgb(175, 143, 46);
/* oklch */ color: oklch(66.2% 0.118 90.0);
Tailwind
colors: {
  custom: {
    50: '#cbaf6d',
    500: '#af8f2e',
    950: '#000000',
  },
}
SCSS
$custom: #af8f2e;
$custom-light: #cbaf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#af8f2e",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 46
  },
  "hsl": {
    "h": 45.116,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.66234,
    "c": 0.11816,
    "h": 90
  },
  "luminance": 0.28956
}

Semantic roles & 50–950 ramp

primary
#AF8F2E
secondary
#7488C5
accent
#6DE246
background
#FDFAF6
surface
#FAF4EC
border
#D3CEC7
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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