#AF9B2A#AF9B2A

#AF9B2A is a light, vivid yellow. Relative luminance 0.327; OKLCH L 68.8% C 0.129 H 98.7°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#AF9B2A
RGBrgb(175, 155, 42)
HSLhsl(51, 61%, 43%)
HSVhsv(51, 76%, 69%)
CMYKcmyk(0%, 11.4%, 76%, 31.4%)
CIE-LABlab(63.94, -4.81, 57.95)
CIE-LCHlch(63.94, 58.15, 94.74°)
OKLaboklab(68.75% -0.0195 0.1271)
OKLCHoklch(68.75% 0.129 98.7)
XYZxyz(29.8199, 32.7253, 6.9360)
Luminance0.3272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9B2A #2A3EAF
analogous
#AF582A #AF9B2A #81AF2A
triadic
#AF9B2A #2AAF9B #9B2AAF
tetradic
#AF9B2A #2AAF58 #2A3EAF #AF2A81
square
#AF9B2A #2AAF58 #2A3EAF #AF2A81
split-complementary
#AF9B2A #2A81AF #582AAF
monochromatic
#4C4412 #7E6F1E #AF9B2A #D2BD44 #DECE75

Accessibility & contrast

On white

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

On black

7.54
#AF9B2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9B2A
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9B2A#FFFFFF#000000##000000
##AF9B2A1.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9714
Deuteranopia (green-blind)
#B09E32
Tritanopia (blue-blind)
#BD8F85
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9b2a;
/* rgb */ color: rgb(175, 155, 42);
/* oklch */ color: oklch(68.8% 0.129 98.7);
Tailwind
colors: {
  custom: {
    50: '#cbb86c',
    500: '#af9b2a',
    950: '#000000',
  },
}
SCSS
$custom: #af9b2a;
$custom-light: #cbb86c;
$custom-dark: #000000;
JSON
{
  "hex": "#af9b2a",
  "rgb": {
    "r": 175,
    "g": 155,
    "b": 42
  },
  "hsl": {
    "h": 50.977,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.68751,
    "c": 0.1286,
    "h": 98.7
  },
  "luminance": 0.32724
}

Semantic roles & 50–950 ramp

primary
#AF9B2A
secondary
#6F7CC6
accent
#5CE443
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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