#AF9931#AF9931

#AF9931 is a light, vivid yellow. Relative luminance 0.321; OKLCH L 68.4% C 0.123 H 96.9°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#AF9931
RGBrgb(175, 153, 49)
HSLhsl(50, 56%, 44%)
HSVhsv(50, 72%, 69%)
CMYKcmyk(0%, 12.6%, 72%, 31.4%)
CIE-LABlab(63.44, -3.41, 54.82)
CIE-LCHlch(63.44, 54.93, 93.56°)
OKLaboklab(68.37% -0.0148 0.1218)
OKLCHoklch(68.37% 0.123 96.9)
XYZxyz(29.6263, 32.1197, 7.5444)
Luminance0.3212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9931 #3147AF
analogous
#AF5A31 #AF9931 #86AF31
triadic
#AF9931 #31AF99 #9931AF
tetradic
#AF9931 #31AF5A #3147AF #AF3186
square
#AF9931 #31AF5A #3147AF #AF3186
split-complementary
#AF9931 #3186AF #5A31AF
monochromatic
#4F4516 #7F6F24 #AF9931 #CEB84F #DBCB7F

Accessibility & contrast

On white

2.83
#AF9931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#AF9931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9931
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9931#FFFFFF#000000##000000
##AF99311.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99521
Deuteranopia (green-blind)
#AE9D37
Tritanopia (blue-blind)
#BD8D84
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9931;
/* rgb */ color: rgb(175, 153, 49);
/* oklch */ color: oklch(68.4% 0.123 96.9);
Tailwind
colors: {
  custom: {
    50: '#cab670',
    500: '#af9931',
    950: '#000000',
  },
}
SCSS
$custom: #af9931;
$custom-light: #cab670;
$custom-dark: #000000;
JSON
{
  "hex": "#af9931",
  "rgb": {
    "r": 175,
    "g": 153,
    "b": 49
  },
  "hsl": {
    "h": 49.524,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.68372,
    "c": 0.12272,
    "h": 96.9
  },
  "luminance": 0.32118
}

Semantic roles & 50–950 ramp

primary
#AF9931
secondary
#7885C4
accent
#63E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9931

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

Preview Lab → · Contrast checker → · Palette generator →

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