#AFA426#AFA426

#AFA426 is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.7% C 0.138 H 104.2°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#AFA426
RGBrgb(175, 164, 38)
HSLhsl(55, 64%, 42%)
HSVhsv(55, 78%, 69%)
CMYKcmyk(0%, 6.3%, 78.3%, 31.4%)
CIE-LABlab(66.37, -9.75, 61.54)
CIE-LCHlch(66.37, 62.30, 99.00°)
OKLaboklab(70.68% -0.0338 0.134)
OKLCHoklch(70.68% 0.138 104.2)
XYZxyz(31.3059, 35.8061, 7.0956)
Luminance0.3580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA426 #2631AF
analogous
#AF5F26 #AFA426 #76AF26
triadic
#AFA426 #26AFA4 #A426AF
tetradic
#AFA426 #26AF5F #2631AF #AF2676
square
#AFA426 #26AF5F #2631AF #AF2676
split-complementary
#AFA426 #2676AF #5F26AF
monochromatic
#4A4610 #7D751B #AFA426 #D5C93D #E0D770

Accessibility & contrast

On white

2.57
#AFA426 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#AFA426 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA426
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA426#FFFFFF#000000##000000
##AFA4261.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E03
Deuteranopia (green-blind)
#B7A430
Tritanopia (blue-blind)
#BD988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa426;
/* rgb */ color: rgb(175, 164, 38);
/* oklch */ color: oklch(70.7% 0.138 104.2);
Tailwind
colors: {
  custom: {
    50: '#cbbe6c',
    500: '#afa426',
    950: '#000000',
  },
}
SCSS
$custom: #afa426;
$custom-light: #cbbe6c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa426",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 38
  },
  "hsl": {
    "h": 55.182,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.70677,
    "c": 0.13818,
    "h": 104.2
  },
  "luminance": 0.35805
}

Semantic roles & 50–950 ramp

primary
#AFA426
secondary
#6A72C7
accent
#4EE740
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA426

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

Preview Lab → · Contrast checker → · Palette generator →

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