#AFA726#AFA726

#AFA726 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.3% C 0.141 H 105.7°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#AFA726
RGBrgb(175, 167, 38)
HSLhsl(56, 64%, 42%)
HSVhsv(56, 78%, 69%)
CMYKcmyk(0%, 4.6%, 78.3%, 31.4%)
CIE-LABlab(67.20, -11.32, 62.28)
CIE-LCHlch(67.20, 63.30, 100.30°)
OKLaboklab(71.33% -0.0382 0.1356)
OKLCHoklch(71.33% 0.141 105.7)
XYZxyz(31.8491, 36.8926, 7.2767)
Luminance0.3689 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA726 #262EAF
analogous
#AF6226 #AFA726 #73AF26
triadic
#AFA726 #26AFA7 #A726AF
tetradic
#AFA726 #26AF62 #262EAF #AF2673
square
#AFA726 #26AF62 #262EAF #AF2673
split-complementary
#AFA726 #2673AF #6226AF
monochromatic
#4A4710 #7D771B #AFA726 #D5CC3D #E0D970

Accessibility & contrast

On white

2.51
#AFA726 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#AFA726 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA726
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA726#FFFFFF#000000##000000
##AFA7261.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A100
Deuteranopia (green-blind)
#B9A631
Tritanopia (blue-blind)
#BC9B8F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa726;
/* rgb */ color: rgb(175, 167, 38);
/* oklch */ color: oklch(71.3% 0.141 105.7);
Tailwind
colors: {
  custom: {
    50: '#cbc06c',
    500: '#afa726',
    950: '#000000',
  },
}
SCSS
$custom: #afa726;
$custom-light: #cbc06c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa726",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 38
  },
  "hsl": {
    "h": 56.496,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.71334,
    "c": 0.14085,
    "h": 105.7
  },
  "luminance": 0.36891
}

Semantic roles & 50–950 ramp

primary
#AFA726
secondary
#6A70C7
accent
#4AE740
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA726

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

Preview Lab → · Contrast checker → · Palette generator →

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