#A7B126#A7B126

#A7B126 is a light, vivid yellow. Relative luminance 0.398; OKLCH L 72.9% C 0.152 H 113.9°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#A7B126
RGBrgb(167, 177, 38)
HSLhsl(64, 65%, 42%)
HSVhsv(64, 79%, 69%)
CMYKcmyk(5.6%, 0%, 78.5%, 30.6%)
CIE-LABlab(69.33, -19.92, 63.95)
CIE-LCHlch(69.33, 66.98, 107.30°)
OKLaboklab(72.88% -0.0617 0.1395)
OKLCHoklch(72.88% 0.153 113.9)
XYZxyz(32.0093, 39.8004, 7.8294)
Luminance0.3980 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B126 #3026B1
analogous
#B17626 #A7B126 #61B126
triadic
#A7B126 #26A7B1 #B126A7
tetradic
#A7B126 #26B176 #3026B1 #B12661
square
#A7B126 #26B176 #3026B1 #B12661
split-complementary
#A7B126 #2661B1 #7626B1
monochromatic
#484C10 #777F1B #A7B126 #CBD63F #D8E071

Accessibility & contrast

On white

2.34
#A7B126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.96
#A7B126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B126
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B126#FFFFFF#000000##000000
##A7B1261.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#BEAB33
Tritanopia (blue-blind)
#B2A697
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a7b126;
/* rgb */ color: rgb(167, 177, 38);
/* oklch */ color: oklch(72.9% 0.152 113.9);
Tailwind
colors: {
  custom: {
    50: '#c5c86d',
    500: '#a7b126',
    950: '#000000',
  },
}
SCSS
$custom: #a7b126;
$custom-light: #c5c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b126",
  "rgb": {
    "r": 167,
    "g": 177,
    "b": 38
  },
  "hsl": {
    "h": 64.317,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72876,
    "c": 0.1525,
    "h": 113.9
  },
  "luminance": 0.398
}

Semantic roles & 50–950 ramp

primary
#A7B126
secondary
#726BC7
accent
#40E84C
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A7B126

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

Preview Lab → · Contrast checker → · Palette generator →

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