#AF9A31#AF9A31

#AF9A31 is a light, vivid yellow. Relative luminance 0.324; OKLCH L 68.6% C 0.123 H 97.6°. Best body text is #000000 at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#AF9A31
RGBrgb(175, 154, 49)
HSLhsl(50, 56%, 44%)
HSVhsv(50, 72%, 69%)
CMYKcmyk(0%, 12%, 72%, 31.4%)
CIE-LABlab(63.71, -3.95, 55.09)
CIE-LCHlch(63.71, 55.23, 94.10°)
OKLaboklab(68.59% -0.0163 0.1224)
OKLCHoklch(68.59% 0.123 97.6)
XYZxyz(29.7906, 32.4484, 7.5991)
Luminance0.3245 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9A31 #3146AF
analogous
#AF5B31 #AF9A31 #85AF31
triadic
#AF9A31 #31AF9A #9A31AF
tetradic
#AF9A31 #31AF5B #3146AF #AF3185
square
#AF9A31 #31AF5B #3146AF #AF3185
split-complementary
#AF9A31 #3185AF #5B31AF
monochromatic
#4F4616 #7F7024 #AF9A31 #CEB94F #DBCC7F

Accessibility & contrast

On white

2.80
#AF9A31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.49
#AF9A31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9A31
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9A31#FFFFFF#000000##000000
##AF9A311.002.807.497.49
#FFFFFF2.801.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99621
Deuteranopia (green-blind)
#AF9D37
Tritanopia (blue-blind)
#BD8E85
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9a31;
/* rgb */ color: rgb(175, 154, 49);
/* oklch */ color: oklch(68.6% 0.123 97.6);
Tailwind
colors: {
  custom: {
    50: '#cab770',
    500: '#af9a31',
    950: '#000000',
  },
}
SCSS
$custom: #af9a31;
$custom-light: #cab770;
$custom-dark: #000000;
JSON
{
  "hex": "#af9a31",
  "rgb": {
    "r": 175,
    "g": 154,
    "b": 49
  },
  "hsl": {
    "h": 50,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.68586,
    "c": 0.12348,
    "h": 97.6
  },
  "luminance": 0.32447
}

Semantic roles & 50–950 ramp

primary
#AF9A31
secondary
#7884C4
accent
#61E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9A31

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

Preview Lab → · Contrast checker → · Palette generator →

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