#A7B728#A7B728

#A7B728 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.2% C 0.158 H 116.1°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#A7B728
RGBrgb(167, 183, 40)
HSLhsl(67, 64%, 44%)
HSVhsv(67, 78%, 72%)
CMYKcmyk(8.7%, 0%, 78.1%, 28.2%)
CIE-LABlab(71.03, -22.82, 64.89)
CIE-LCHlch(71.03, 68.79, 109.38°)
OKLaboklab(74.25% -0.0696 0.1418)
OKLCHoklch(74.25% 0.158 116.1)
XYZxyz(33.2538, 42.2362, 8.4077)
Luminance0.4224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B728 #3828B7
analogous
#B77F28 #A7B728 #5FB728
triadic
#A7B728 #28A7B7 #B728A7
tetradic
#A7B728 #28B77F #3828B7 #B7285F
square
#A7B728 #28B77F #3828B7 #B7285F
split-complementary
#A7B728 #285FB7 #7F28B7
monochromatic
#4B5312 #79851D #A7B728 #C6D646 #D6E178

Accessibility & contrast

On white

2.22
#A7B728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.45
#A7B728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B728
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B728#FFFFFF#000000##000000
##A7B7281.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#C3AF36
Tritanopia (blue-blind)
#B2AC9D
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #a7b728;
/* rgb */ color: rgb(167, 183, 40);
/* oklch */ color: oklch(74.2% 0.158 116.1);
Tailwind
colors: {
  custom: {
    50: '#c5cc6f',
    500: '#a7b728',
    950: '#000000',
  },
}
SCSS
$custom: #a7b728;
$custom-light: #c5cc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b728",
  "rgb": {
    "r": 167,
    "g": 183,
    "b": 40
  },
  "hsl": {
    "h": 66.713,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.74249,
    "c": 0.15796,
    "h": 116.1
  },
  "luminance": 0.42236
}

Semantic roles & 50–950 ramp

primary
#A7B728
secondary
#7B72C9
accent
#41E753
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7B728

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

Preview Lab → · Contrast checker → · Palette generator →

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