#AF9831#AF9831

#AF9831 is a light, vivid yellow. Relative luminance 0.318; OKLCH L 68.2% C 0.122 H 96.2°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#AF9831
RGBrgb(175, 152, 49)
HSLhsl(49, 56%, 44%)
HSVhsv(49, 72%, 69%)
CMYKcmyk(0%, 13.1%, 72%, 31.4%)
CIE-LABlab(63.17, -2.87, 54.56)
CIE-LCHlch(63.17, 54.63, 93.01°)
OKLaboklab(68.16% -0.0132 0.1213)
OKLCHoklch(68.16% 0.122 96.2)
XYZxyz(29.4633, 31.7937, 7.4900)
Luminance0.3179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9831 #3148AF
analogous
#AF5931 #AF9831 #87AF31
triadic
#AF9831 #31AF98 #9831AF
tetradic
#AF9831 #31AF59 #3148AF #AF3187
square
#AF9831 #31AF59 #3148AF #AF3187
split-complementary
#AF9831 #3187AF #5931AF
monochromatic
#4F4516 #7F6E24 #AF9831 #CEB74F #DBCA7F

Accessibility & contrast

On white

2.85
#AF9831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#AF9831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9831
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9831#FFFFFF#000000##000000
##AF98311.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89521
Deuteranopia (green-blind)
#AE9C37
Tritanopia (blue-blind)
#BD8C83
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9831;
/* rgb */ color: rgb(175, 152, 49);
/* oklch */ color: oklch(68.2% 0.122 96.2);
Tailwind
colors: {
  custom: {
    50: '#cab670',
    500: '#af9831',
    950: '#000000',
  },
}
SCSS
$custom: #af9831;
$custom-light: #cab670;
$custom-dark: #000000;
JSON
{
  "hex": "#af9831",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 49
  },
  "hsl": {
    "h": 49.048,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.68158,
    "c": 0.12199,
    "h": 96.2
  },
  "luminance": 0.31792
}

Semantic roles & 50–950 ramp

primary
#AF9831
secondary
#7886C4
accent
#64E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9831

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

Preview Lab → · Contrast checker → · Palette generator →

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