#AFA126#AFA126

#AFA126 is a light, vivid yellow. Relative luminance 0.347; OKLCH L 70.0% C 0.136 H 102.5°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#AFA126
RGBrgb(175, 161, 38)
HSLhsl(54, 64%, 42%)
HSVhsv(54, 78%, 69%)
CMYKcmyk(0%, 8%, 78.3%, 31.4%)
CIE-LABlab(65.55, -8.17, 60.79)
CIE-LCHlch(65.55, 61.34, 97.65°)
OKLaboklab(70.02% -0.0293 0.1324)
OKLCHoklch(70.02% 0.136 102.5)
XYZxyz(30.7754, 34.7450, 6.9187)
Luminance0.3474 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA126 #2634AF
analogous
#AF5D26 #AFA126 #78AF26
triadic
#AFA126 #26AFA1 #A126AF
tetradic
#AFA126 #26AF5D #2634AF #AF2678
square
#AFA126 #26AF5D #2634AF #AF2678
split-complementary
#AFA126 #2678AF #5D26AF
monochromatic
#4A4410 #7D731B #AFA126 #D5C53D #E0D470

Accessibility & contrast

On white

2.64
#AFA126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#AFA126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA126
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA126#FFFFFF#000000##000000
##AFA1261.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C05
Deuteranopia (green-blind)
#B5A230
Tritanopia (blue-blind)
#BD958A
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa126;
/* rgb */ color: rgb(175, 161, 38);
/* oklch */ color: oklch(70.0% 0.136 102.5);
Tailwind
colors: {
  custom: {
    50: '#cbbc6b',
    500: '#afa126',
    950: '#000000',
  },
}
SCSS
$custom: #afa126;
$custom-light: #cbbc6b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa126",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 38
  },
  "hsl": {
    "h": 53.869,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.70023,
    "c": 0.1356,
    "h": 102.5
  },
  "luminance": 0.34744
}

Semantic roles & 50–950 ramp

primary
#AFA126
secondary
#6A74C7
accent
#52E740
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AFA126

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

Preview Lab → · Contrast checker → · Palette generator →

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