#AF9829#AF9829

#AF9829 is a light, vivid yellow. Relative luminance 0.317; OKLCH L 68.1% C 0.127 H 96.9°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#AF9829
RGBrgb(175, 152, 41)
HSLhsl(50, 62%, 42%)
HSVhsv(50, 77%, 69%)
CMYKcmyk(0%, 13.1%, 76.6%, 31.4%)
CIE-LABlab(63.12, -3.24, 57.54)
CIE-LCHlch(63.12, 57.63, 93.22°)
OKLaboklab(68.1% -0.0151 0.126)
OKLCHoklch(68.1% 0.127 96.9)
XYZxyz(29.3092, 31.7321, 6.6785)
Luminance0.3173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9829 #2940AF
analogous
#AF5529 #AF9829 #83AF29
triadic
#AF9829 #29AF98 #9829AF
tetradic
#AF9829 #29AF55 #2940AF #AF2983
square
#AF9829 #29AF55 #2940AF #AF2983
split-complementary
#AF9829 #2983AF #5529AF
monochromatic
#4C4212 #7D6D1D #AF9829 #D3BA42 #DECC74

Accessibility & contrast

On white

2.86
#AF9829 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.35
#AF9829 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9829
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9829#FFFFFF#000000##000000
##AF98291.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9829;
/* rgb */ color: rgb(175, 152, 41);
/* oklch */ color: oklch(68.1% 0.127 96.9);
Tailwind
colors: {
  custom: {
    50: '#cbb56c',
    500: '#af9829',
    950: '#000000',
  },
}
SCSS
$custom: #af9829;
$custom-light: #cbb56c;
$custom-dark: #000000;
JSON
{
  "hex": "#af9829",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 41
  },
  "hsl": {
    "h": 49.701,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.68101,
    "c": 0.12695,
    "h": 96.9
  },
  "luminance": 0.31731
}

Semantic roles & 50–950 ramp

primary
#AF9829
secondary
#6E7DC6
accent
#5FE543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9829

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

Preview Lab → · Contrast checker → · Palette generator →

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