#A7A828#A7A828

#A7A828 is a light, vivid yellow. Relative luminance 0.364; OKLCH L 70.9% C 0.142 H 110.0°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#A7A828
RGBrgb(167, 168, 40)
HSLhsl(60, 62%, 41%)
HSVhsv(60, 76%, 66%)
CMYKcmyk(0.6%, 0%, 76.2%, 34.1%)
CIE-LABlab(66.81, -15.27, 61.04)
CIE-LCHlch(66.81, 62.92, 104.05°)
OKLaboklab(70.86% -0.0486 0.1336)
OKLCHoklch(70.86% 0.142 110)
XYZxyz(30.3231, 36.3748, 7.4308)
Luminance0.3637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A828 #2928A8
analogous
#A86928 #A7A828 #67A828
triadic
#A7A828 #28A7A8 #A828A7
tetradic
#A7A828 #28A869 #2928A8 #A82867
square
#A7A828 #28A869 #2928A8 #A82867
split-complementary
#A7A828 #2867A8 #6928A8
monochromatic
#454510 #76771C #A7A828 #D0D13D #DCDC6E

Accessibility & contrast

On white

2.54
#A7A828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#A7A828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A828
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A828#FFFFFF#000000##000000
##A7A8281.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A107
Deuteranopia (green-blind)
#B7A433
Tritanopia (blue-blind)
#B39D90
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a7a828;
/* rgb */ color: rgb(167, 168, 40);
/* oklch */ color: oklch(70.9% 0.142 110.0);
Tailwind
colors: {
  custom: {
    50: '#c5c16d',
    500: '#a7a828',
    950: '#000000',
  },
}
SCSS
$custom: #a7a828;
$custom-light: #c5c16d;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a828",
  "rgb": {
    "r": 167,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 60.469,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.7086,
    "c": 0.14219,
    "h": 110
  },
  "luminance": 0.36374
}

Semantic roles & 50–950 ramp

primary
#A7A828
secondary
#6969C3
accent
#43E544
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A7A828

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

Preview Lab → · Contrast checker → · Palette generator →

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