#A5A626#A5A626

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

Color values

HEX#A5A626
RGBrgb(165, 166, 38)
HSLhsl(60, 63%, 40%)
HSVhsv(60, 77%, 65%)
CMYKcmyk(0.6%, 0%, 77.1%, 34.9%)
CIE-LABlab(66.07, -15.20, 60.94)
CIE-LCHlch(66.07, 62.81, 104.00°)
OKLaboklab(70.23% -0.0485 0.1331)
OKLCHoklch(70.23% 0.142 110)
XYZxyz(29.5042, 35.4126, 7.1145)
Luminance0.3541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A626 #2726A6
analogous
#A66726 #A5A626 #65A626
triadic
#A5A626 #26A5A6 #A626A5
tetradic
#A5A626 #26A667 #2726A6 #A62665
square
#A5A626 #26A667 #2726A6 #A62665
split-complementary
#A5A626 #2665A6 #6726A6
monochromatic
#42420F #73741B #A5A626 #D0D138 #DCDD6A

Accessibility & contrast

On white

2.60
#A5A626 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#A5A626 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A626
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A626#FFFFFF#000000##000000
##A5A6261.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F02
Deuteranopia (green-blind)
#B5A231
Tritanopia (blue-blind)
#B19B8E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a5a626;
/* rgb */ color: rgb(165, 166, 38);
/* oklch */ color: oklch(70.2% 0.142 110.0);
Tailwind
colors: {
  custom: {
    50: '#c3c06c',
    500: '#a5a626',
    950: '#000000',
  },
}
SCSS
$custom: #a5a626;
$custom-light: #c3c06c;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a626",
  "rgb": {
    "r": 165,
    "g": 166,
    "b": 38
  },
  "hsl": {
    "h": 60.469,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.70228,
    "c": 0.14169,
    "h": 110
  },
  "luminance": 0.35412
}

Semantic roles & 50–950 ramp

primary
#A5A626
secondary
#6665C3
accent
#42E643
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A5A626

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

Preview Lab → · Contrast checker → · Palette generator →

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