#AF9C31#AF9C31

#AF9C31 is a light, vivid yellow. Relative luminance 0.331; OKLCH L 69.0% C 0.125 H 98.9°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#AF9C31
RGBrgb(175, 156, 49)
HSLhsl(51, 56%, 44%)
HSVhsv(51, 72%, 69%)
CMYKcmyk(0%, 10.9%, 72%, 31.4%)
CIE-LABlab(64.25, -5.02, 55.62)
CIE-LCHlch(64.25, 55.85, 95.16°)
OKLaboklab(69.02% -0.0194 0.1235)
OKLCHoklch(69.02% 0.125 98.9)
XYZxyz(30.1235, 33.1141, 7.7101)
Luminance0.3311 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9C31 #3144AF
analogous
#AF5D31 #AF9C31 #83AF31
triadic
#AF9C31 #31AF9C #9C31AF
tetradic
#AF9C31 #31AF5D #3144AF #AF3183
square
#AF9C31 #31AF5D #3144AF #AF3183
split-complementary
#AF9C31 #3183AF #5D31AF
monochromatic
#4F4716 #7F7124 #AF9C31 #CEBB4F #DBCD7F

Accessibility & contrast

On white

2.75
#AF9C31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.62
#AF9C31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9C31
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9C31#FFFFFF#000000##000000
##AF9C311.002.757.627.62
#FFFFFF2.751.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9820
Deuteranopia (green-blind)
#B09F38
Tritanopia (blue-blind)
#BD9087
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9c31;
/* rgb */ color: rgb(175, 156, 49);
/* oklch */ color: oklch(69.0% 0.125 98.9);
Tailwind
colors: {
  custom: {
    50: '#cab870',
    500: '#af9c31',
    950: '#000000',
  },
}
SCSS
$custom: #af9c31;
$custom-light: #cab870;
$custom-dark: #000000;
JSON
{
  "hex": "#af9c31",
  "rgb": {
    "r": 175,
    "g": 156,
    "b": 49
  },
  "hsl": {
    "h": 50.952,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.69015,
    "c": 0.12504,
    "h": 98.9
  },
  "luminance": 0.33113
}

Semantic roles & 50–950 ramp

primary
#AF9C31
secondary
#7883C4
accent
#5FE048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9C31

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

Preview Lab → · Contrast checker → · Palette generator →

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