#AFA73A#AFA73A

#AFA73A is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.5% C 0.128 H 105.1°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#AFA73A
RGBrgb(175, 167, 58)
HSLhsl(56, 50%, 46%)
HSVhsv(56, 67%, 69%)
CMYKcmyk(0%, 4.6%, 66.9%, 31.4%)
CIE-LABlab(67.32, -10.36, 55.09)
CIE-LCHlch(67.32, 56.05, 100.65°)
OKLaboklab(71.47% -0.0335 0.124)
OKLCHoklch(71.47% 0.128 105.1)
XYZxyz(32.2629, 37.0581, 9.4556)
Luminance0.3706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA73A #3A42AF
analogous
#AF6C3A #AFA73A #7DAF3A
triadic
#AFA73A #3AAFA7 #A73AAF
tetradic
#AFA73A #3AAF6C #3A42AF #AF3A7D
square
#AFA73A #3AAF6C #3A42AF #AF3A7D
split-complementary
#AFA73A #3A7DAF #6C3AAF
monochromatic
#534F1C #817B2B #AFA73A #C9C25D #D9D38B

Accessibility & contrast

On white

2.50
#AFA73A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#AFA73A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA73A
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA73A#FFFFFF#000000##000000
##AFA73A1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A12B
Deuteranopia (green-blind)
#B8A641
Tritanopia (blue-blind)
#BC9C91
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa73a;
/* rgb */ color: rgb(175, 167, 58);
/* oklch */ color: oklch(71.5% 0.128 105.1);
Tailwind
colors: {
  custom: {
    50: '#cac076',
    500: '#afa73a',
    950: '#000000',
  },
}
SCSS
$custom: #afa73a;
$custom-light: #cac076;
$custom-dark: #000000;
JSON
{
  "hex": "#afa73a",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 58
  },
  "hsl": {
    "h": 55.897,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.71472,
    "c": 0.12843,
    "h": 105.1
  },
  "luminance": 0.37057
}

Semantic roles & 50–950 ramp

primary
#AFA73A
secondary
#8286C3
accent
#58DA4E
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA73A

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

Preview Lab → · Contrast checker → · Palette generator →

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