#AF9E4F#AF9E4F

#AF9E4F is a light, moderate yellow. Relative luminance 0.341; OKLCH L 69.7% C 0.102 H 97.4°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#AF9E4F
RGBrgb(175, 158, 79)
HSLhsl(49, 38%, 50%)
HSVhsv(49, 55%, 69%)
CMYKcmyk(0%, 9.7%, 54.9%, 31.4%)
CIE-LABlab(65.07, -4.08, 43.00)
CIE-LCHlch(65.07, 43.19, 95.43°)
OKLaboklab(69.75% -0.0131 0.101)
OKLCHoklch(69.75% 0.102 97.4)
XYZxyz(31.3185, 34.1335, 12.3344)
Luminance0.3413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E4F #4F60AF
analogous
#AF6E4F #AF9E4F #90AF4F
triadic
#AF9E4F #4FAF9E #9E4FAF
tetradic
#AF9E4F #4FAF6E #4F60AF #AF4F90
square
#AF9E4F #4FAF6E #4F60AF #AF4F90
split-complementary
#AF9E4F #4F90AF #6E4FAF
monochromatic
#5B5229 #85783C #AF9E4F #C2B579 #D5CDA3

Accessibility & contrast

On white

2.68
#AF9E4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#AF9E4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9E4F
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9E4F#FFFFFF#000000##000000
##AF9E4F1.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9B48
Deuteranopia (green-blind)
#B0A052
Tritanopia (blue-blind)
#BB948C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9e4f;
/* rgb */ color: rgb(175, 158, 79);
/* oklch */ color: oklch(69.7% 0.102 97.4);
Tailwind
colors: {
  custom: {
    50: '#c9ba82',
    500: '#af9e4f',
    950: '#000000',
  },
}
SCSS
$custom: #af9e4f;
$custom-light: #c9ba82;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e4f",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 79
  },
  "hsl": {
    "h": 49.375,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.69749,
    "c": 0.10187,
    "h": 97.4
  },
  "luminance": 0.34132
}

Semantic roles & 50–950 ramp

primary
#AF9E4F
secondary
#979FC3
accent
#6FCE5A
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13110B
muted
#82807C

Preview Lab

Preview with #AF9E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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