#AFA73D#AFA73D

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

Color values

HEX#AFA73D
RGBrgb(175, 167, 61)
HSLhsl(56, 48%, 46%)
HSVhsv(56, 65%, 69%)
CMYKcmyk(0%, 4.6%, 65.1%, 31.4%)
CIE-LABlab(67.34, -10.17, 53.86)
CIE-LCHlch(67.34, 54.81, 100.70°)
OKLaboklab(71.5% -0.0326 0.1219)
OKLCHoklch(71.5% 0.126 105)
XYZxyz(32.3414, 37.0895, 9.8694)
Luminance0.3709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA73D #3D45AF
analogous
#AF6E3D #AFA73D #7EAF3D
triadic
#AFA73D #3DAFA7 #A73DAF
tetradic
#AFA73D #3DAF6E #3D45AF #AF3D7E
square
#AFA73D #3DAF6E #3D45AF #AF3D7E
split-complementary
#AFA73D #3D7EAF #6E3DAF
monochromatic
#54501D #827C2D #AFA73D #C8C161 #D8D38F

Accessibility & contrast

On white

2.49
#AFA73D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA73D#FFFFFF#000000##000000
##AFA73D1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa73d;
/* rgb */ color: rgb(175, 167, 61);
/* oklch */ color: oklch(71.5% 0.126 105.0);
Tailwind
colors: {
  custom: {
    50: '#cac078',
    500: '#afa73d',
    950: '#000000',
  },
}
SCSS
$custom: #afa73d;
$custom-light: #cac078;
$custom-dark: #000000;
JSON
{
  "hex": "#afa73d",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 61
  },
  "hsl": {
    "h": 55.789,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.71498,
    "c": 0.12616,
    "h": 105
  },
  "luminance": 0.37088
}

Semantic roles & 50–950 ramp

primary
#AFA73D
secondary
#8589C3
accent
#59D850
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA73D

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

Preview Lab → · Contrast checker → · Palette generator →

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