#AFA92A#AFA92A

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

Color values

HEX#AFA92A
RGBrgb(175, 169, 42)
HSLhsl(57, 61%, 43%)
HSVhsv(57, 76%, 69%)
CMYKcmyk(0%, 3.4%, 76%, 31.4%)
CIE-LABlab(67.77, -12.20, 61.51)
CIE-LCHlch(67.77, 62.71, 101.22°)
OKLaboklab(71.8% -0.0403 0.1347)
OKLCHoklch(71.8% 0.141 106.7)
XYZxyz(32.2864, 37.6582, 7.7581)
Luminance0.3766 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA92A #2A30AF
analogous
#AF662A #AFA92A #73AF2A
triadic
#AFA92A #2AAFA9 #A92AAF
tetradic
#AFA92A #2AAF66 #2A30AF #AF2A73
square
#AFA92A #2AAF66 #2A30AF #AF2A73
split-complementary
#AFA92A #2A73AF #662AAF
monochromatic
#4C4A12 #7E791E #AFA92A #D2CC44 #DED975

Accessibility & contrast

On white

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

On black

8.53
#AFA92A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA92A
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA92A#FFFFFF#000000##000000
##AFA92A1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A20C
Deuteranopia (green-blind)
#BAA734
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa92a;
/* rgb */ color: rgb(175, 169, 42);
/* oklch */ color: oklch(71.8% 0.141 106.7);
Tailwind
colors: {
  custom: {
    50: '#cbc26e',
    500: '#afa92a',
    950: '#000000',
  },
}
SCSS
$custom: #afa92a;
$custom-light: #cbc26e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa92a",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 42
  },
  "hsl": {
    "h": 57.293,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.71796,
    "c": 0.14059,
    "h": 106.7
  },
  "luminance": 0.37657
}

Semantic roles & 50–950 ramp

primary
#AFA92A
secondary
#6F73C6
accent
#4BE443
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA92A

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

Preview Lab → · Contrast checker → · Palette generator →

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