#AF9731#AF9731

#AF9731 is a light, vivid yellow. Relative luminance 0.315; OKLCH L 67.9% C 0.121 H 95.5°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#AF9731
RGBrgb(175, 151, 49)
HSLhsl(49, 56%, 44%)
HSVhsv(49, 72%, 69%)
CMYKcmyk(0%, 13.7%, 72%, 31.4%)
CIE-LABlab(62.90, -2.33, 54.29)
CIE-LCHlch(62.90, 54.34, 92.46°)
OKLaboklab(67.94% -0.0117 0.1207)
OKLCHoklch(67.94% 0.121 95.5)
XYZxyz(29.3017, 31.4705, 7.4362)
Luminance0.3147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9731 #3149AF
analogous
#AF5831 #AF9731 #88AF31
triadic
#AF9731 #31AF97 #9731AF
tetradic
#AF9731 #31AF58 #3149AF #AF3188
square
#AF9731 #31AF58 #3149AF #AF3188
split-complementary
#AF9731 #3188AF #5831AF
monochromatic
#4F4416 #7F6E24 #AF9731 #CEB64F #DBCA7F

Accessibility & contrast

On white

2.88
#AF9731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#AF9731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9731
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9731#FFFFFF#000000##000000
##AF97311.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79422
Deuteranopia (green-blind)
#AD9B37
Tritanopia (blue-blind)
#BD8B83
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af9731;
/* rgb */ color: rgb(175, 151, 49);
/* oklch */ color: oklch(67.9% 0.121 95.5);
Tailwind
colors: {
  custom: {
    50: '#cbb570',
    500: '#af9731',
    950: '#000000',
  },
}
SCSS
$custom: #af9731;
$custom-light: #cbb570;
$custom-dark: #000000;
JSON
{
  "hex": "#af9731",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 48.571,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.67945,
    "c": 0.12127,
    "h": 95.5
  },
  "luminance": 0.31469
}

Semantic roles & 50–950 ramp

primary
#AF9731
secondary
#7886C4
accent
#65E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9731

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

Preview Lab → · Contrast checker → · Palette generator →

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