#AFA73B#AFA73B

#AFA73B 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#AFA73B
RGBrgb(175, 167, 59)
HSLhsl(56, 50%, 46%)
HSVhsv(56, 66%, 69%)
CMYKcmyk(0%, 4.6%, 66.3%, 31.4%)
CIE-LABlab(67.33, -10.30, 54.68)
CIE-LCHlch(67.33, 55.64, 100.66°)
OKLaboklab(71.48% -0.0332 0.1233)
OKLCHoklch(71.48% 0.128 105.1)
XYZxyz(32.2886, 37.0683, 9.5909)
Luminance0.3707 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA73B #3B43AF
analogous
#AF6D3B #AFA73B #7DAF3B
triadic
#AFA73B #3BAFA7 #A73BAF
tetradic
#AFA73B #3BAF6D #3B43AF #AF3B7D
square
#AFA73B #3BAF6D #3B43AF #AF3B7D
split-complementary
#AFA73B #3B7DAF #6D3BAF
monochromatic
#53501C #817B2C #AFA73B #C9C15E #D8D38C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA73B#FFFFFF#000000##000000
##AFA73B1.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)
#B5A12D
Deuteranopia (green-blind)
#B8A642
Tritanopia (blue-blind)
#BC9C91
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa73b;
/* rgb */ color: rgb(175, 167, 59);
/* oklch */ color: oklch(71.5% 0.128 105.1);
Tailwind
colors: {
  custom: {
    50: '#cac077',
    500: '#afa73b',
    950: '#000000',
  },
}
SCSS
$custom: #afa73b;
$custom-light: #cac077;
$custom-dark: #000000;
JSON
{
  "hex": "#afa73b",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 59
  },
  "hsl": {
    "h": 55.862,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.71481,
    "c": 0.12768,
    "h": 105.1
  },
  "luminance": 0.37067
}

Semantic roles & 50–950 ramp

primary
#AFA73B
secondary
#8387C3
accent
#58D94F
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA73B

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

Preview Lab → · Contrast checker → · Palette generator →

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