#AFA926#AFA926

#AFA926 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 71.8% C 0.143 H 106.7°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#AFA926
RGBrgb(175, 169, 38)
HSLhsl(57, 64%, 42%)
HSVhsv(57, 78%, 69%)
CMYKcmyk(0%, 3.4%, 78.3%, 31.4%)
CIE-LABlab(67.75, -12.36, 62.78)
CIE-LCHlch(67.75, 63.98, 101.14°)
OKLaboklab(71.77% -0.0411 0.1366)
OKLCHoklch(71.77% 0.143 106.7)
XYZxyz(32.2184, 37.6310, 7.3997)
Luminance0.3763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA926 #262CAF
analogous
#AF6526 #AFA926 #71AF26
triadic
#AFA926 #26AFA9 #A926AF
tetradic
#AFA926 #26AF65 #262CAF #AF2671
square
#AFA926 #26AF65 #262CAF #AF2671
split-complementary
#AFA926 #2671AF #6526AF
monochromatic
#4A4810 #7D781B #AFA926 #D5CE3D #E0DB70

Accessibility & contrast

On white

2.46
#AFA926 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#AFA926 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA926
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA926#FFFFFF#000000##000000
##AFA9261.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#BBA731
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa926;
/* rgb */ color: rgb(175, 169, 38);
/* oklch */ color: oklch(71.8% 0.143 106.7);
Tailwind
colors: {
  custom: {
    50: '#cbc26c',
    500: '#afa926',
    950: '#000000',
  },
}
SCSS
$custom: #afa926;
$custom-light: #cbc26c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa926",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 38
  },
  "hsl": {
    "h": 57.372,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.71773,
    "c": 0.14267,
    "h": 106.7
  },
  "luminance": 0.3763
}

Semantic roles & 50–950 ramp

primary
#AFA926
secondary
#6A6EC7
accent
#48E740
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141207
muted
#82817A

Preview Lab

Preview with #AFA926

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

Preview Lab → · Contrast checker → · Palette generator →

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