#AF9D31#AF9D31

#AF9D31 is a light, vivid yellow. Relative luminance 0.335; OKLCH L 69.2% C 0.126 H 99.6°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#AF9D31
RGBrgb(175, 157, 49)
HSLhsl(51, 56%, 44%)
HSVhsv(51, 72%, 69%)
CMYKcmyk(0%, 10.3%, 72%, 31.4%)
CIE-LABlab(64.52, -5.55, 55.89)
CIE-LCHlch(64.52, 56.17, 95.68°)
OKLaboklab(69.23% -0.0209 0.1241)
OKLCHoklch(69.23% 0.126 99.6)
XYZxyz(30.2920, 33.4511, 7.7663)
Luminance0.3345 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D31 #3143AF
analogous
#AF5E31 #AF9D31 #82AF31
triadic
#AF9D31 #31AF9D #9D31AF
tetradic
#AF9D31 #31AF5E #3143AF #AF3182
square
#AF9D31 #31AF5E #3143AF #AF3182
split-complementary
#AF9D31 #3182AF #5E31AF
monochromatic
#4F4716 #7F7224 #AF9D31 #CEBC4F #DBCE7F

Accessibility & contrast

On white

2.73
#AF9D31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#AF9D31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D31
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D31#FFFFFF#000000##000000
##AF9D311.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9920
Deuteranopia (green-blind)
#B19F38
Tritanopia (blue-blind)
#BD9188
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9d31;
/* rgb */ color: rgb(175, 157, 49);
/* oklch */ color: oklch(69.2% 0.126 99.6);
Tailwind
colors: {
  custom: {
    50: '#cab970',
    500: '#af9d31',
    950: '#000000',
  },
}
SCSS
$custom: #af9d31;
$custom-light: #cab970;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d31",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 49
  },
  "hsl": {
    "h": 51.429,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.6923,
    "c": 0.12583,
    "h": 99.6
  },
  "luminance": 0.3345
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF9D31

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

Preview Lab → · Contrast checker → · Palette generator →

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