#A7A226#A7A226

#A7A226 is a light, vivid yellow. Relative luminance 0.342; OKLCH L 69.5% C 0.137 H 107.1°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#A7A226
RGBrgb(167, 162, 38)
HSLhsl(58, 63%, 40%)
HSVhsv(58, 77%, 65%)
CMYKcmyk(0%, 3%, 77.2%, 34.5%)
CIE-LABlab(65.12, -12.24, 60.14)
CIE-LCHlch(65.12, 61.37, 101.50°)
OKLaboklab(69.51% -0.0404 0.1313)
OKLCHoklch(69.51% 0.137 107.1)
XYZxyz(29.2077, 34.1971, 6.8955)
Luminance0.3420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A226 #262BA7
analogous
#A76126 #A7A226 #6CA726
triadic
#A7A226 #26A7A2 #A226A7
tetradic
#A7A226 #26A761 #262BA7 #A7266C
square
#A7A226 #26A761 #262BA7 #A7266C
split-complementary
#A7A226 #266CA7 #6126A7
monochromatic
#43410F #75721B #A7A226 #D2CC38 #DDD96A

Accessibility & contrast

On white

2.68
#A7A226 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#A7A226 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A226
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A226#FFFFFF#000000##000000
##A7A2261.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C05
Deuteranopia (green-blind)
#B3A030
Tritanopia (blue-blind)
#B4978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a7a226;
/* rgb */ color: rgb(167, 162, 38);
/* oklch */ color: oklch(69.5% 0.137 107.1);
Tailwind
colors: {
  custom: {
    50: '#c5bd6b',
    500: '#a7a226',
    950: '#000000',
  },
}
SCSS
$custom: #a7a226;
$custom-light: #c5bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a226",
  "rgb": {
    "r": 167,
    "g": 162,
    "b": 38
  },
  "hsl": {
    "h": 57.674,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.6951,
    "c": 0.13739,
    "h": 107.1
  },
  "luminance": 0.34196
}

Semantic roles & 50–950 ramp

primary
#A7A226
secondary
#6569C3
accent
#48E642
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A7A226

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

Preview Lab → · Contrast checker → · Palette generator →

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