#AF9B31#AF9B31

#AF9B31 is a light, vivid yellow. Relative luminance 0.328; OKLCH L 68.8% C 0.124 H 98.3°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#AF9B31
RGBrgb(175, 155, 49)
HSLhsl(50, 56%, 44%)
HSVhsv(50, 72%, 69%)
CMYKcmyk(0%, 11.4%, 72%, 31.4%)
CIE-LABlab(63.98, -4.48, 55.36)
CIE-LCHlch(63.98, 55.54, 94.63°)
OKLaboklab(68.8% -0.0178 0.123)
OKLCHoklch(68.8% 0.124 98.3)
XYZxyz(29.9564, 32.7799, 7.6544)
Luminance0.3278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9B31 #3145AF
analogous
#AF5C31 #AF9B31 #84AF31
triadic
#AF9B31 #31AF9B #9B31AF
tetradic
#AF9B31 #31AF5C #3145AF #AF3184
square
#AF9B31 #31AF5C #3145AF #AF3184
split-complementary
#AF9B31 #3184AF #5C31AF
monochromatic
#4F4616 #7F7124 #AF9B31 #CEBA4F #DBCD7F

Accessibility & contrast

On white

2.78
#AF9B31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#AF9B31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9B31
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9B31#FFFFFF#000000##000000
##AF9B311.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9721
Deuteranopia (green-blind)
#B09E37
Tritanopia (blue-blind)
#BD8F86
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9b31;
/* rgb */ color: rgb(175, 155, 49);
/* oklch */ color: oklch(68.8% 0.124 98.3);
Tailwind
colors: {
  custom: {
    50: '#cab870',
    500: '#af9b31',
    950: '#000000',
  },
}
SCSS
$custom: #af9b31;
$custom-light: #cab870;
$custom-dark: #000000;
JSON
{
  "hex": "#af9b31",
  "rgb": {
    "r": 175,
    "g": 155,
    "b": 49
  },
  "hsl": {
    "h": 50.476,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.688,
    "c": 0.12425,
    "h": 98.3
  },
  "luminance": 0.32778
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF9B31

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

Preview Lab → · Contrast checker → · Palette generator →

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