#AF9E2E#AF9E2E

#AF9E2E is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.4% C 0.129 H 100.4°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#AF9E2E
RGBrgb(175, 158, 46)
HSLhsl(52, 58%, 43%)
HSVhsv(52, 74%, 69%)
CMYKcmyk(0%, 9.7%, 73.7%, 31.4%)
CIE-LABlab(64.78, -6.23, 57.28)
CIE-LCHlch(64.78, 57.62, 96.21°)
OKLaboklab(69.42% -0.0231 0.1265)
OKLCHoklch(69.42% 0.129 100.4)
XYZxyz(30.4006, 33.7664, 7.5005)
Luminance0.3377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E2E #2E3FAF
analogous
#AF5D2E #AF9E2E #7FAF2E
triadic
#AF9E2E #2EAF9E #9E2EAF
tetradic
#AF9E2E #2EAF5D #2E3FAF #AF2E7F
square
#AF9E2E #2EAF5D #2E3FAF #AF2E7F
split-complementary
#AF9E2E #2E7FAF #5D2EAF
monochromatic
#4E4615 #7F7221 #AF9E2E #D0BE4B #DCD07B

Accessibility & contrast

On white

2.71
#AF9E2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#AF9E2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9E2E
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9E2E#FFFFFF#000000##000000
##AF9E2E1.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD991A
Deuteranopia (green-blind)
#B2A035
Tritanopia (blue-blind)
#BD9288
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e2e;
/* rgb */ color: rgb(175, 158, 46);
/* oklch */ color: oklch(69.4% 0.129 100.4);
Tailwind
colors: {
  custom: {
    50: '#cbba6f',
    500: '#af9e2e',
    950: '#000000',
  },
}
SCSS
$custom: #af9e2e;
$custom-light: #cbba6f;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e2e",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 46
  },
  "hsl": {
    "h": 52.093,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.69424,
    "c": 0.12858,
    "h": 100.4
  },
  "luminance": 0.33765
}

Semantic roles & 50–950 ramp

primary
#AF9E2E
secondary
#747FC5
accent
#5BE246
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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