#AFA73C#AFA73C

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

Color values

HEX#AFA73C
RGBrgb(175, 167, 60)
HSLhsl(56, 49%, 46%)
HSVhsv(56, 66%, 69%)
CMYKcmyk(0%, 4.6%, 65.7%, 31.4%)
CIE-LABlab(67.34, -10.24, 54.27)
CIE-LCHlch(67.34, 55.23, 100.68°)
OKLaboklab(71.49% -0.0329 0.1226)
OKLCHoklch(71.49% 0.127 105)
XYZxyz(32.3147, 37.0788, 9.7288)
Luminance0.3708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA73C #3C44AF
analogous
#AF6D3C #AFA73C #7DAF3C
triadic
#AFA73C #3CAFA7 #A73CAF
tetradic
#AFA73C #3CAF6D #3C44AF #AF3C7D
square
#AFA73C #3CAF6D #3C44AF #AF3C7D
split-complementary
#AFA73C #3C7DAF #6D3CAF
monochromatic
#54501D #817C2C #AFA73C #C8C160 #D8D38D

Accessibility & contrast

On white

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

On black

8.42
#AFA73C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA73C
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA73C#FFFFFF#000000##000000
##AFA73C1.002.508.428.42
#FFFFFF2.501.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa73c;
/* rgb */ color: rgb(175, 167, 60);
/* oklch */ color: oklch(71.5% 0.127 105.0);
Tailwind
colors: {
  custom: {
    50: '#cac077',
    500: '#afa73c',
    950: '#000000',
  },
}
SCSS
$custom: #afa73c;
$custom-light: #cac077;
$custom-dark: #000000;
JSON
{
  "hex": "#afa73c",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 60
  },
  "hsl": {
    "h": 55.826,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.7149,
    "c": 0.12692,
    "h": 105
  },
  "luminance": 0.37078
}

Semantic roles & 50–950 ramp

primary
#AFA73C
secondary
#8488C3
accent
#59D84F
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA73C

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

Preview Lab → · Contrast checker → · Palette generator →

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