#A7B128#A7B128

#A7B128 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#A7B128
RGBrgb(167, 177, 40)
HSLhsl(64, 63%, 43%)
HSVhsv(64, 77%, 69%)
CMYKcmyk(5.6%, 0%, 77.4%, 30.6%)
CIE-LABlab(69.34, -19.84, 63.35)
CIE-LCHlch(69.34, 66.39, 107.39°)
OKLaboklab(72.89% -0.0613 0.1385)
OKLCHoklch(72.89% 0.152 113.9)
XYZxyz(32.0425, 39.8136, 8.0039)
Luminance0.3981 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B128 #3228B1
analogous
#B17728 #A7B128 #62B128
triadic
#A7B128 #28A7B1 #B128A7
tetradic
#A7B128 #28B177 #3228B1 #B12862
square
#A7B128 #28B177 #3228B1 #B12862
split-complementary
#A7B128 #2862B1 #7728B1
monochromatic
#494D11 #787F1D #A7B128 #CAD442 #D8E074

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7B128#FFFFFF#000000##000000
##A7B1281.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)
#BEAB34
Tritanopia (blue-blind)
#B2A698
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a7b128;
/* rgb */ color: rgb(167, 177, 40);
/* oklch */ color: oklch(72.9% 0.152 113.9);
Tailwind
colors: {
  custom: {
    50: '#c5c86e',
    500: '#a7b128',
    950: '#000000',
  },
}
SCSS
$custom: #a7b128;
$custom-light: #c5c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b128",
  "rgb": {
    "r": 167,
    "g": 177,
    "b": 40
  },
  "hsl": {
    "h": 64.38,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72887,
    "c": 0.15151,
    "h": 113.9
  },
  "luminance": 0.39813
}

Semantic roles & 50–950 ramp

primary
#A7B128
secondary
#746EC7
accent
#42E64E
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7B128

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

Preview Lab → · Contrast checker → · Palette generator →

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