#AFA92F#AFA92F

#AFA92F is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.8% C 0.138 H 106.5°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#AFA92F
RGBrgb(175, 169, 47)
HSLhsl(57, 58%, 44%)
HSVhsv(57, 73%, 69%)
CMYKcmyk(0%, 3.4%, 73.1%, 31.4%)
CIE-LABlab(67.80, -11.98, 59.81)
CIE-LCHlch(67.80, 61.00, 101.32°)
OKLaboklab(71.83% -0.0392 0.132)
OKLCHoklch(71.83% 0.138 106.5)
XYZxyz(32.3815, 37.6963, 8.2592)
Luminance0.3770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA92F #2F35AF
analogous
#AF692F #AFA92F #75AF2F
triadic
#AFA92F #2FAFA9 #A92FAF
tetradic
#AFA92F #2FAF69 #2F35AF #AF2F75
square
#AFA92F #2FAF69 #2F35AF #AF2F75
split-complementary
#AFA92F #2F75AF #692FAF
monochromatic
#4F4C15 #7F7A22 #AFA92F #CFC94C #DCD77C

Accessibility & contrast

On white

2.46
#AFA92F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#AFA92F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA92F
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA92F#FFFFFF#000000##000000
##AFA92F1.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A318
Deuteranopia (green-blind)
#BAA738
Tritanopia (blue-blind)
#BC9E91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa92f;
/* rgb */ color: rgb(175, 169, 47);
/* oklch */ color: oklch(71.8% 0.138 106.5);
Tailwind
colors: {
  custom: {
    50: '#cac270',
    500: '#afa92f',
    950: '#000000',
  },
}
SCSS
$custom: #afa92f;
$custom-light: #cac270;
$custom-dark: #000000;
JSON
{
  "hex": "#afa92f",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 47
  },
  "hsl": {
    "h": 57.188,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.71827,
    "c": 0.13772,
    "h": 106.5
  },
  "luminance": 0.37695
}

Semantic roles & 50–950 ramp

primary
#AFA92F
secondary
#7579C4
accent
#4EE147
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA92F

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

Preview Lab → · Contrast checker → · Palette generator →

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