#A7A126#A7A126

#A7A126 is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.3% C 0.136 H 106.6°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#A7A126
RGBrgb(167, 161, 38)
HSLhsl(57, 63%, 40%)
HSVhsv(57, 77%, 65%)
CMYKcmyk(0%, 3.6%, 77.2%, 34.5%)
CIE-LABlab(64.84, -11.72, 59.89)
CIE-LCHlch(64.84, 61.02, 101.07°)
OKLaboklab(69.29% -0.0389 0.1308)
OKLCHoklch(69.29% 0.136 106.6)
XYZxyz(29.0323, 33.8462, 6.8370)
Luminance0.3384 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A126 #262CA7
analogous
#A76026 #A7A126 #6DA726
triadic
#A7A126 #26A7A1 #A126A7
tetradic
#A7A126 #26A760 #262CA7 #A7266D
square
#A7A126 #26A760 #262CA7 #A7266D
split-complementary
#A7A126 #266DA7 #6026A7
monochromatic
#43410F #75711B #A7A126 #D2CB38 #DDD86A

Accessibility & contrast

On white

2.70
#A7A126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#A7A126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A126
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A126#FFFFFF#000000##000000
##A7A1261.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B06
Deuteranopia (green-blind)
#B29F30
Tritanopia (blue-blind)
#B4968A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a7a126;
/* rgb */ color: rgb(167, 161, 38);
/* oklch */ color: oklch(69.3% 0.136 106.6);
Tailwind
colors: {
  custom: {
    50: '#c5bc6b',
    500: '#a7a126',
    950: '#000000',
  },
}
SCSS
$custom: #a7a126;
$custom-light: #c5bc6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a126",
  "rgb": {
    "r": 167,
    "g": 161,
    "b": 38
  },
  "hsl": {
    "h": 57.209,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.69288,
    "c": 0.13645,
    "h": 106.6
  },
  "luminance": 0.33845
}

Semantic roles & 50–950 ramp

primary
#A7A126
secondary
#656AC3
accent
#49E642
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A7A126

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

Preview Lab → · Contrast checker → · Palette generator →

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